|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
HI, I'm making a php page where i have to inlucde restrictions on on the user input fields. I cant get the telephone and birthdate fields to work where the restrictions are: on the phone field Allowed separators are spaces, dashes and brackets“( ) “. Phone number contains 10 numbers. on the birthdate filed: Must be a date and must be a date before the current date
|
|
#2
|
|||
|
|||
|
Why give the user the option?
Try seperate input boxes for each. ie... <input type="text" name="area_code"> - <input type="text" name="exchange"> - <input type="text" name="last_four"> and... <select name="date_month"> <option value="01" SELECTED>January</option> <option value="02">February</option> <option value="03">March</option> <option value="04">April</option> <option value="05">May</option> <option value="06">June</option> <option value="07">July</option> <option..... </select> <select name="date_day"> <option value="01" SELECTED>1</option> <option value="02">2</option> <option value="03">3</option> <option value="04">4</option> <option value="05">5</option> <option value="06">6</option> <option value="07">7</option> <option value="08">8</option> <option value="09">9</option> <option value="10">10</option> <option.... </select> <select name="date_year"> <option value="2003" SELECTED>2003</option> <option value="2004">2004</option> <option value="2005">2005</option> <option value="2006">2006</option> <option.... </select> |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Php Help!!!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|