Hello. I'm new to this forum, so i'll get right to it.
How do i do $HTTP_POST_VARS that for a multitude of many drop downs that are being generated by a shopping cart functions.
each drop is like this in html code:
<tr><td class="main"><b>Lanyard Width:</b></td><td>
<select name="id[11]"><option value="61">3/8" - FREE</option><option value="60">1/2" ($0.08)</option></select></td></tr><tr>
<tr><td class="main"><b>Quick Release Buckle:</b></td><td>
<select name="id[6]"><option value="36">None - FREE</option><option value="37">Quick release buckle ($0.15)</option></select></td></tr>
and so forth.
now when they hit submit it takes them to the same page, except now the header (address bar) will read:
http://www.blah.com/sample_request.php?action=success
as opposed to
http://www.blah.com/sample_request.php.
on the top of the page my code does this:
if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
if (tep_validate_email(trim($HTTP_POST_VARS['email']))) {
and near the body is generates different html if action==send
so now my question again, how do i receive all the posted stuff ?
I tried using an global array to store the selected idds but that was unsuccessful because the id's would get lost right away.
To see the code, please see the attached.