Re: Forms Question

by "Keith D Sellars" <Keith(at)webgraffix.com>

 Date:  Thu, 9 Jan 2003 22:22:32 -0500
 To:  "HWG Basics" <hwg-basics(at)hwg.org>
 References:  p1 S0026260871 p12 S00262608712
  todo: View Thread, Original
I am including the code directly from one of our forms that we do this for.
The values that you see are taken from mysql queries in the same file above
this form.  I think this is what you're asking for.

Here is the code:

<form action="<? echo $PHP_SELF; ?>" method="post">
<table width="100%" border="0">

<tr>
<td valign="top"><font class="navBold">Administrator First Name:</font><br>
<input type="text" size="23" name="FirstName" value="<? echo $FirstName;
?>">
</td>
<td valign="top"><font class="navBold">Administrator Last Name:</font><br>
<input type="text" size="23" name="LastName" value="<? echo $LastName; ?>">
</td>
</tr>

<tr>
<td valign="top"><font class="navBold">Salutation (Mr., Mrs.,
Ms.):</font><br>
<input type="text" size="23" name="Salutation" value="<? echo $Salutation;
?>">
</td>
<td valign="top"><font class="navBold">Administrator Title:</font><br>
<input type="text" size="23" name="Title" value="<? echo $Title; ?>">
</td>
</tr>

<tr>
<td valign="top"><font class="navBold">Administrator Email
Address:</font><br>
<input type="text" size="23" name="Email" value="<? echo $Email; ?>">
</td>
<td valign="top"><font class="navBold">Administrator Username:</font><br>
<input type="text" size="23" name="Username" value="<? echo $Username; ?>">
</td>
</tr>

<tr>
<td valign="top"><font class="navBold">Administrator Password:</font><font
class="asterisk"> *</font><br><font class="normalLittle3">(only if
changing)</font><br>
<input type="password" size="23" name="Password1" value="<? echo $Password1;
?>">
</td>
<td valign="top"><font class="navBold">Confirm Administrator
Password:</font><font class="asterisk"> *</font><br><font
class="normalLittle3">(only if changing)</font><br>
<input type="password" size="23" name="Password2" value="<? echo $Password2;
?>">
</td>
</tr>

<tr>
<td colspan="2">
<center><br>&nbsp;<br><font class="asterisk">*</font> <font
class="navBold">NOTE: </font><font class="asterisk"><i>Passwords must be at
least 6 characters long</i></font></center>
<BR>&nbsp;<BR>
</td>
</tr>

<tr>
<td colspan="2">
<center>
<input type="hidden" name="Returned" value="1">
<input type="hidden" name="AdminUserID" value="<? echo $AdminUserID; ?>">
<input type="hidden" name="LocationID" value="<? echo $LocationID; ?>">
<input type="submit" value="Modify >>">
</center>
</td></tr>
</table> </form>

Hope this helps,

Thanks,
Keith D Sellars
WebGraffix
www.webgraffix.com

"Making database sites seem easy"

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.