[RESOLVED] How to get HTML form post values after email validation
I'm trying to write form values to a CSV file AFTER I have validated an email address using a crude form of Double Opt in;
I'm using a modified version of code shown here:
Everything works except I can't capture the form values except the email address.
There's a section where it says
// add the email to your double opt-in list here
After that, I've tried to get the values to post to the CSV file, but I only get the email value. The other form fields dont get posted.
I've tried POST & REQUEST to get the posted variables.
Neither one seems to work.
If I create a separate php file at the end, everything gets posted correctly, but I only want to post the emails that have been validated.
Any ideas welcome.
How to get HTML form post values after email validation
My form tag has name , phonenumber etc.. all in the same form
I even tried to put the variables in sessions & that didn't work
<input type="text" name="name" size="32">
<input type="text" maxlength="8" name="phonenumber" size="21">
$_SESSION['phonenumber'] = $_POST['phonenumber'];
I can't see why I dont have access to the sessions to be able to post them to the CSV file.
TO post I've tried
I've modified it like
$phonenumber = $_SESSION['phonenumber'];
$savestring = $name . "," . $areacode . "," . $phonenumber. "," .$email . "," . $date ."\n";
$phonenumber = $_POST['phonenumber'];
Still Not working
I've NEVER has SESSIONS NOT work after trying all these angles!