I was reading through some of the threads and found one (Where to begin? Client login for my wife's wedding consulting business)that directed me to http://www.phpfreaks.com/tutorials/40/0.php
My question is: can a variable be added, for the email input, to where only certain email addresses can be utilized. i.e. only @domain.com addresses will be accepted -- so if someone enters user@notcorrect.com the registration will fail, but user@domain.com will be accpeted and the registration will continue?
Thanks for your help,Code:<form name="form1" method="post" action="register.php"> <table width="100%" border="0" cellpadding="4" cellspacing="0"> <tr> <td width="24%" align="left" valign="top">First Name</td> <td width="76%"><input name="first_name" type="text" id="first_name2" value="<? echo $first_name; ?>"></td> </tr> <tr> <td align="left" valign="top">Last Name</td> <td><input name="last_name" type="text" id="last_name" value="<? echo $last_name; ?>"></td> </tr> <tr> <td align="left" valign="top">Email Address</td> <td><input name="email_address" type="text" id="email_address" value="<? echo $email_address; ?>"></td> </tr> <tr> <td align="left" valign="top">Desired Username</td> <td><input name="username" type="text" id="username" value="<? echo $username; ?>"></td> </tr> <tr> <td align="left" valign="top"> </td> <td><input type="submit" name="Submit" value="Join Now!"></td> </tr> </table> </form>
Josh




Bookmarks