+ Reply to Thread
Results 1 to 9 of 9

Thread: help for validating forms
      
   

  1. #1
    chandni is offline Second Lieutenant
    Join Date
    Mar 2006
    Posts
    114

    Default help for validating forms

    hi can some pls pls help me validating this form...i have been struggling hard to write a php script but always something goes wrong...this is the url... WWW.LEXIMINDIA.COM i would be very thankful if some can write a script for me pls...
    many thanks
    chandni

  2. #2
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: help for validating forms

    chandni-

    What you are asking is very involved and is not a simple thing. To get it right, and professional, I recommend that you look at this;

    http://www.vodahost.com/vodatalk/fre...g-service.html

    There is quite a bit of work there- for example, your form does not have a submit button. Aside from that, this extensive of a form needs validation for required fields and security measures in the script. Watdaflip would be my choice for something like this.

    Cheers,

    Andy
    PHP- is a blast!

  3. #3
    nbop is offline Corporal
    Join Date
    Jun 2006
    Location
    Belgium
    Posts
    10

    Default Re: help for validating forms

    If i where you I would use javascript for the validation.
    You can find some help on this topic at Form Validation : Introduction - JavaScript Tutorial - EchoEcho.Com - Beginners best choice!
    You could also use php, but your page would have to be reloaded everytime somthing isn't right. I think javascript is the easiest solution for you.

  4. #4
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: help for validating forms

    nbop,

    I tend to disagree. 1- what happens if javascript is turned off? 2- PHP is a server side script and therefore the validation/security measures are unseen which makes it harder to hack.

    While I agree that javascript can do the job- it has it's limitations.

    As to the re-load, using the back button or a return to previous page button will keep all previously entered content in the form fields.

    Just another point of view.

    Cheers,

    Andy
    PHP- is a blast!

  5. #5
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: help for validating forms

    chandni-

    What e-mail address would you have the form info sent to?

    Have you resolved this issue?

    Andy
    PHP- is a blast!

  6. #6
    nbop is offline Corporal
    Join Date
    Jun 2006
    Location
    Belgium
    Posts
    10

    Default Re: help for validating forms

    @andy128: well i don't think his form has to be extremely secure and if he wants to use php he would have to learn regex. This is harder then the javascript solution. You can always force the user to allow javascript.
    The best way is using javascript and php. But I think php is a little to hard for chandni. I wouldn't pay someone to make a script for me but search for a solution myself. This way you learn and save money. (It does use time :p)


    @chandi: try google. Search for php regular expressions.

  7. #7
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: help for validating forms

    If your main job does not allow you the time to do it yourself, then Watdaflip's Form Scripting Service is the best solution. I've been writing scripts for many members, including validation and upload. Your script is relatively easy, but only if you have some experience.

    nbop: ANY form that sends an email, is a potential spammer target. Even a simple Tell a Friend form. Chances are less than 5% that a form may actually be hijacked, but why risk?
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


  8. #8
    nbop is offline Corporal
    Join Date
    Jun 2006
    Location
    Belgium
    Posts
    10

    Default Re: help for validating forms

    Lol so u want to protect form hijacking with validating it's input? If you want to protect against hijacking you need to use php: sessions or cookies. But for simply checking if a form is empty, email is vailid, numer is number you can use javascript. This way is faster (page dosn't need to actually be submitted or reloaded) so user friendlier.
    Owja you might want to use a captcha (you know, an image with contents that you need to type in a textbox) against bot spam.

  9. #9
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,060

    Default Re: help for validating forms

    nbop: I think we have a missunderstanding here. Form security has been an issue during the last two months - obviously you weren't around at that time. If you were you would have seen that we are talking excactly about php, and, since we should use it for that purpose, we might as well use it for validation also.
    Navaldesign
    Logger Lite: Low Cost, Customizable, multifeatured Login script
    Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
    DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
    Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49