Posted by Newbie Supreme on 02/14/06 19:54
mismacku, you were dead on, it works great making the changes you suggested.
Newb my butt:>).
Thanks very much for the help.
"mismacku" <mismacku@gmail.com> wrote in message
news:1139902581.600876.7500@g43g2000cwa.googlegroups.com...
> I'm also a supreme newb so beware.
>
> print "You entered email as $_POST ['email']\n" ; doesn't work because
> you POSTed to "feedback.php" not to your thanks page. My newbie fix
> would be to modify the last few lines of feedback.php like this:
>
> ----------SNIPPET-------------
> $email = rawurlencode($email);
> header( "Location: $thankyouurl?email=$email" );
> exit ;
> ----------END SNIPPET-------------
>
> Then modify your thanks page like this:
> <?
> $email = rawurldecode($_GET['email']);
> print "You entered email as $email\n";
> ?>
>
> Second question:
> It looks like feedback.php already verifies that the user entered
> something (not necessarily an email address) in the email field.
>
> ----------SNIPPET-------------
> if (!isset($_POST['email'])) {
> header( "Location: $formurl" );
> exit ;
> ----------END SNIPPET-------------
>
> Again, I'm a newb so use at your own risk.
>
[Back to original message]
|