in reply to Need help with regexes to validate user input

Oh, I may have misread your comments. But could anyone help me out as to where I need to implement the "If/Print" statements above into my existing code? Thanks. Audrey.
  • Comment on Re: Need help with regexes to validate user input

Replies are listed 'Best First'.
Re: Re: Need help with regexes to validate user input
by ysth (Canon) on Nov 11, 2003 at 08:09 UTC
    No, my comment was ambiguous, sorry.

    Anyway, right now your code has three major parts: if there are params, it is processing form input and then displaying a receipt; otherwise it displays the form. The validation goes in the "processing form input" part. If any of your validations fail, you want to print an error message, skip displaying the receipt, and go on to display the form. I hope that helps, or at least gets you on to the next specific question.