Return to iWEBTOOL

Go Back   iWEBTOOL Talk > The Web and your Website > Programming > HTML
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Reply
 
Thread Tools Search this Thread Display Modes
Old 03-17-2008, 11:33 AM   #1
almadera
Smurf
 
almadera's Avatar
 
Join Date: Mar 2008
Posts: 1
almadera is on a distinguished road
Default Form validation problem

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>
almadera is offline   Reply With Quote
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 03-23-2008, 12:44 AM   #2
searchacar
Member
 
searchacar's Avatar
 
Join Date: Apr 2007
Posts: 106
searchacar is on a distinguished road
Default Re: Form validation problem

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.
__________________
Used Cars for Sale - Web Design
searchacar is offline   Reply With Quote
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Reply



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

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


All times are GMT. The time now is 05:38 AM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.