Current location: Hot Scripts Forums » Programming Languages » PHP » Form mail with validation! pls help ty


Form mail with validation! pls help ty

Reply
  #1 (permalink)  
Old 09-23-07, 10:54 PM
iangarrinud iangarrinud is offline
Newbie Coder
 
Join Date: Sep 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Form mail with validation! pls help ty

Is it possible to write a form mail that would have a validation for each field but would only have a one page called $_SELF? just an html page with php code but only just one page. I research from different search engines but it has different approaches thats why I get confused.

Is it posible? pls help.......ty


-ian
Reply With Quote
  #2 (permalink)  
Old 09-23-07, 11:23 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
In a word, yes. You can pre-validate the form with Javascript, submit the form (to itself) and then do server-side tests in PHP.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
  #3 (permalink)  
Old 09-23-07, 11:57 PM
iangarrinud iangarrinud is offline
Newbie Coder
 
Join Date: Sep 2007
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Ic, but I want a straight forward all PHP code w/o any other but php and html only
Reply With Quote
  #4 (permalink)  
Old 09-24-07, 01:19 AM
daveganley daveganley is offline
Newbie Coder
 
Join Date: Jun 2003
Location: London UK
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
Reply With Quote
  #5 (permalink)  
Old 09-24-07, 07:31 AM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 3,027
Thanks: 14
Thanked 35 Times in 33 Posts
Quote:
Originally Posted by iangarrinud View Post
Ic, but I want a straight forward all PHP code w/o any other but php and html only
Then just skip the part where I said "pre-validate the form with Javascript,".
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data | Oracle Date & Substring Functions | Code Snippet Library | [url=http://www.codmb.com/Call Of Duty[/url]
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Attachement help needed sujata_ghosh Perl 18 06-22-07 01:00 PM
Looking for php mail form w/ attachments and required fields Sithlord999 Script Requests 0 08-11-06 04:14 AM
Question about a form mail script 9999 PHP 2 07-22-06 01:16 PM
Form Validation slimey PHP 10 03-20-06 06:23 PM
Need help with form validation script dathandawg JavaScript 1 12-29-05 12:17 AM


All times are GMT -5. The time now is 06:11 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.