It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming PHP and MySQL Forum

need a little help.

Moderator: Malcolm

need a little help.

Postby Ash on Tue Mar 14, 2006 11:07 am

I am making a new website and I would like the members of the forum i have got to be able to sign in to the forum without having to go to the forum first so they can sign into the forum using my site. Is that possible and if so how do I do it?
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby webmaster on Tue Mar 14, 2006 5:50 pm

Yes it is. Just copy the source code for all the fields. Then change the <form action=""> to the correct page, and it should work.
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby Ash on Tue Mar 14, 2006 5:53 pm

I have one of these as the login space. Do I just add it to the HTML and do i have to resave the pages to .PHP instead of .HTML?

Code: Select all
<center><input type="text" name="username" style="background-color:#aaaaaa; border:dashed color: #515050;" />
         <br>
         Password<br>
          <input type="password" name="password" style="background-color: #aaaaaa; border: 1px solid #6b6d6b; color: #515050;" /></center
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby webmaster on Wed Mar 15, 2006 9:30 am

You can save it as .html. The form has nothing to do with PHP. It's only the page that makes something with the form info that is needed to be PHP.
Make sure to check out our TNX Review and Link Vault Review
User avatar
webmaster
Site Admin
 
Posts: 2695
Joined: Tue Aug 17, 2004 1:07 pm
Location: Sweden

Postby Ash on Wed Mar 15, 2006 9:51 am

ok well where do I put this
Code: Select all
<form action="">
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby johneva on Wed Mar 15, 2006 2:08 pm

Same place you do any other form.

For example if your using the code posted above.

Code: Select all
<form action="">
<center><input type="text" name="username" style="background-color:#aaaaaa; border:dashed color: #515050;" />
         <br>
         Password<br>
          <input type="password" name="password" style="background-color: #aaaaaa; border: 1px solid #6b6d6b; color: #515050;" /></center></form>


You will have to add the action you want the form to do though.

By the way you should not use the center tag anymore it has be deprecated.
http://www.w3.org/TR/html4/index/elements.html
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby Ash on Thu Mar 16, 2006 3:28 pm

So it'd look like this:

Code: Select all
<form action="http://s12.invisionfree.com/rome_total_warrior/index.php?
">
<center><input type="text" name="username" style="background-color:#aaaaaa; border:dashed color: #515050;" />
         <br>
         Password<br>
          <input type="password" name="password" style="background-color: #aaaaaa; border: 1px solid #6b6d6b; color: #515050;" /></center></form>
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby johneva on Thu Mar 16, 2006 3:34 pm

I am not 100% as I have never tryed doing what your doing but yeah I would say that looks about right.
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Postby Ash on Thu Mar 16, 2006 3:50 pm

I tried that and added the link to login to the forums using the same link and it never worked. So anyone else got any other ideas?
User avatar
Ash
1000+ Club
 
Posts: 1020
Joined: Wed Aug 03, 2005 6:10 pm
Location: England

Postby johneva on Thu Mar 16, 2006 3:53 pm

You probley need to add a method attribute to the form tag too.
Image
Only God Can Judge Me.
User avatar
johneva
500+ Club
 
Posts: 565
Joined: Sat Oct 29, 2005 1:16 pm
Location: Stafford, England

Next

Who is online

Users browsing this forum: No registered users and 0 guests