Hi I've a FORM like this on addhome.html -- <FORM name="frmlogin" method="post" action="log_make.php"> User Name:<INPUT type="text" maxlength="10" name="username"> Password:<INPUT type="password" maxlength="10" name="password"><BR> <INPUT type="button" value="Login" name="butloginusr"> <INPUT type="button" value="Create User" name="butmakeusr"> </FORM>
The idea is when the user clicks on the button "name=butloginusr" the next page prints Logged In User along with the values of the $username & $password OR when the user clicks button "name=butmakeusr" the next page prints Created User along with the values of the $username & $password. Both the clicks would be processed by log_make.php. * How can I make log_make.php recognise the button that was clicked i.e. Did the page viewer want to login or create a user? * Can I remove the attribute "action=log_make.php" and assign individual scripts to each of the buttons? When I tried this the server said I could not do a POST on address/addhome.html. /*************** My system config is as follows - OS: Win'98 PHP Version:4.2.2 (w/ Register Global Variables=On) Apache Version:1.3.26 Physical Directory of Files: C:\server\Apache\htdocs\address ****************/ Any help or suggestions would be greatly appreciated. Thanks theN -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php