|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Smurf Join Date: Mar 2008
Posts: 1
![]() | I'm using Godaddy's gdform.php form mailer for my forms. The forms work perfectly except the validation. I need the visitors to fill in the fields and then submit the information to my email, but the problem is that everyone can submitt even if he doesn't fill in the form. I want all of the fileds to be required. Is there something wrong with the code ? Here it is : <form action="/gdform.php" method="post"> <table align="center"> <input type="hidden" name="subject" value="Form Submission"> <input type="hidden" name="redirect" value="/Add/thankmes.html"> <input type="hidden" name="required" value="YourName, Email, description"> <tr> <td><p><font color=WHITE font size=4>Your Name:</p> </font></td> <td align=center height=50><p><input type="text" name="YourName" size="52"/></p></td> </tr> <tr> <td><p><font color=WHITE font size=4>Your E-mail:</p> </font></td> <td height=50><p><input type="text" name="Email" size="52"/></p></td> </tr> <tr> <td><p><font color=WHITE font size=4>Your Message:</p> </font></td> <td><br><p><textarea name="description" cols="40" rows="5"> </textarea></p></td> </tr> <tr> <td><input type="submit" name="submit" value="Send"/></td> </tr> </table> </form> |
| | |
|
| |||||||
| | #2 |
| Member Join Date: Apr 2007
Posts: 106
![]() | You have to validate the form before submitting. I can suggest you either do it using javascript or do it using php or server side language. The idea behind this is if someone submit it, then on submit call javascript and it will check fields like this, if(name==""){ alert "Please fill in the name field"; } This is just example but you can find script example, if you search in google. etc. |
| | |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS Validation Checklist and validation service | Intripita-MH | Advertise your website | 0 | 12-06-2007 11:23 PM |
| Does XHTML Validation and CSS Validation has importance for directory? | rakib | Directories | 2 | 08-30-2007 03:57 AM |
| Problem with godaddy. Post your problem here!! | charlesgan | Web Hosting | 4 | 05-16-2007 08:40 PM |
| PageRank button needs validation | luckybee | Suggestions & Feedback | 3 | 05-01-2007 07:42 AM |
| XHTML Validation | compuXP | Advertise your website | 1 | 06-16-2006 06:34 PM |