Jump to content

detailed attributes of php forms


aconite

Recommended Posts

im making a php form.the information entered is used to populate two tables.my form works fine.i wanted to know how could apply certain restriction to the form data(like fields that are mandatory).and also can i set the data type allowed to integer only?and also entry format (like xx-xxxx-xxxxxx).also are there any formating options for the form fields other than center,left,right

currently im using this code

 

<html>

<body BGCOLOR="#FFCC66"><form action="success.php" method="post">

<P align="center">

<FONT FACE="Times New Roman" SIZE="+1" COLOR="#CC6600">ADD CUSTOMER

<br>

<br>

 

First Name: <input type="text" name="fname" maxlength='15'/>

Last Name: <input type="text" name="lname" maxlength='15'/>

Phone#:<input type="text" name="fone" maxlength='11'/>

NIC:<input type="text" name="nic" maxlength='20'/>

<input type="submit" value="Add Customer and account info"/>

</form></body>

 

</html>

 

Link to comment
https://forums.phpfreaks.com/topic/43706-detailed-attributes-of-php-forms/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.