I'm used to using JavaScript to validate data input when the "Submit" button is clicked, if validation checks out, I change a hidden field to "ON", and submit again to catch the VBScript / PHP function that actually builds and sends the e-mail with the form input in HTML format (so it looks nice & neat).
I'm now on a server where I have to use CGI to build and send the e-mail. Stuff like "<input type=hidden name="recipient" value="email@your.host.com">".
I can't for the life of me think of how I can encapsulate the CGI tags into some sort of function I can call when the validation is checked out.
As you may be able to tell I'm kinda new at this for validation stuff and only knew how to do it one way. This could be as easy as pie but I've never had to do it this way.
Please help!
I'm now on a server where I have to use CGI to build and send the e-mail. Stuff like "<input type=hidden name="recipient" value="email@your.host.com">".
I can't for the life of me think of how I can encapsulate the CGI tags into some sort of function I can call when the validation is checked out.
As you may be able to tell I'm kinda new at this for validation stuff and only knew how to do it one way. This could be as easy as pie but I've never had to do it this way.
Please help!