login to another ?

liunx

Guest
Hi there, I have the following code on my MAIN site (<!-- w --><a class="postlink" href="http://www.domain.tld">www.domain.tld</a><!-- w -->) but I want this login to actually login the user to my phpBB (2.0.6) at forum.mydomain.tld.<br />
How can I get this to pass there please?<br />
<br />
Thanks if you can help!<br />
<br />
<br />
<td><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"><br />
<tr><br />
<td><font class="block-title"><strong>Forum Login:</strong></font></td><br />
</tr><br />
</table></td><br />
</tr><br />
</table><br />
<table width="150" border="0" cellpadding="1" cellspacing="0" bgcolor="757575"><br />
<tr><br />
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="F5F5F5"><br />
<tr><br />
<td><table width="100%" border="0" cellspacing="0" cellpadding="4"><br />
<tr><br />
<td><font class="content"><form action="page.php?p=construction" method="post"><center><font class="content">Nickname<br><input type="text" name="username" size="10" maxlength="40"><br>Password<br><input type="password" name="user_password" size="10" maxlength="32"><br><br><br />
<input type="hidden" name="op" value="login"><input type="submit" value="Login"></font></center></form><center><font class="content">Don't have an account yet? You can <a href=http://www.webdeveloper.com/forum/archive/index.php/"page.php?p=construction">create one</a>. As a registered user you can take part in active discussions.<br><br />
<strong>NOTE:</strong> This login does not yet work, if you wish to visit the Forums, click <a href=http://www.webdeveloper.com/forum/archive/index.php/"http://forum.mydomain.tld">here</a>.</font></center></font></td><br />
</tr><br />
</table></td><!--content-->Just use one data base for the phpbb members and the site members. Just see if you can integrate the two into one data base or just use the phpbb one.<!--content-->Hi there.<br />
Sorry, misunderstanting.<br />
<br />
There is only one DB, I don't have site members, just forum members.<br />
<br />
I just wanted to add a "login" on the main www* site that would login them into forum* site.<br />
So when they "submit" their user/pass from the www* - it will login them into forum* and send them there?<br />
<br />
Sorry if this is still unclear.<!--content-->Just connect to the phpbb data base in your php code...<!--content-->??? I'm totally confused!<br />
Sorry if i'm repeating myself... hehe<br />
<br />
All I want to do - is have that login on my page (the www) so they don't have to use login.php at the forum site.<br />
Surely i don't need to connect to a DB or anything ???<!--content-->Yes, you pretty much definatly need to. To login to a data base you need to connect to the data base and select the info. I mean you have to match up the pass and name with the stuff in the data base so you need to select the user info for that.<!--content-->Got it - thanks!<br />
Just used the forum's login.php form code, the input's and values of the username/password boxes, worked great!<br />
<br />
Thanks again! I'll be posting another one in a moment, something I've been looking over all night! Damn HTML! hehehe<!--content-->
 
Back
Top