Forum Moderators: coopster

Message Too Old, No Replies

PHP Log In Error

         

ubique

5:00 pm on Oct 15, 2009 (gmt 0)

10+ Year Member



Am using Dw with PHP and MySQL to set up a login page. When I do a 'check links sitewide' action before posting to my web server it comes up as having a broken link <?php echo $loginFormAction;?>. How do I fix it?

<div id="mainContent">
<h2>&nbsp;</h2>
<h2>Please Log In</h2>
<form id="form1" name="form1" method="POST" action="<?php echo $loginFormAction;?> ">
<table width="0" border="0" cellpadding="10">
<tr>
<td nowrap="nowrap">Username:</td>
<td><label>
<input type="text" name="user_name" id="user_name" />
</label></td>
</tr>
<tr>
<td nowrap="nowrap">Password:</td>
<td><label>
<input type="password" name="user_password" id="user_password" />
</label></td>
</tr>
<tr>
<td>&nbsp;</td>
<td><label>
<input type="submit" name="Submit" id="submit" value="Log In" />
</label></td>
</tr>
</table>
</form>
<p>&nbsp;</p>

nanat

1:59 am on Oct 16, 2009 (gmt 0)

10+ Year Member



hehehe.. hi ubique.. the $loginFormAction means your authentication script like (authenticate.php)..
on submit..

action="authenticate.php"

//(authenticate.php) form
if (isset($_POST["Submit"]))
{
$user = trim(stripslashes($_POST["user_name"]));
$passwd = md5($_POST["user_password"]);
} ect..