-
Well I guess I dont understand what you have in mind with
($_GET['page']
when your form is a POST, not a get, and 'page' is not a var on that form anyway, so that is strike 2, and with PHP its ONE strike you are out. So, is what you are asking for is a validation routine for an email address? Cause that sure doesnt sound like where you were going at first. So maybe instead of not enough info we have too much?
-
Hi John-Marc,
I was just trying to figure out how I could code something that uses the form that icontact uses but instead of redirecting to a new page on success or error, that the message (thanks or error) displays in the same area as the form. And if there's an error - it still displays the form.
I know I could use an iframe, but I didn't want to.
If I don't put in a redirect or errorredirect it goes to icontact's success and error pages.
If you have another idea that would be great.
-
Well, the POST goes to their site, and the error is Javascript, so it goes nowhere when there is an error in email. I would think you could dupe the form on your site and change the 'redirect' var to point to your script, but unless you know what to expect from the errorredirect, not sure what you would display.
To test, I suppose you could try and then see what is sent on error with this:
PHP Code:
reset($_REQUEST);
while (list($var,$val) = each($_REQUEST)) {
echo "$var = $val<BR>";
}