Jump to content

judikrd

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

judikrd's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hmmm, great ideas, I'm sure -- but I don't know how to do session variables or cookies. And yeah, PayPal seems to actually call the page from whence it came, unfortunately. But, isn't there a way to put some code into the Submit button that will call the new page? Because if the URL is something like, "www.page.com?keyn=4", that works (i.e., PayPal can go back there). It's just that I haven't figured out how to get that into the redirect from the Submit button using my $_POST variable. Any ideas?? Thanks for your help!!
  2. Thanks so much for your help but... I can't use your code -- that's what I had in the first place! The problem is, that after being in combSelect.php, from there we go to PayPal. And once in the PayPal shopping cart, one can click on "Continue shopping", which takes you back to combSelect.php -- except this time, since the page doesn't know the value of $_POST['groupChoice'] any more, you get an error message. So I have to find a new way of doing this...
  3. Hello...! I'm rather new to php and can't find out how to redirect to a new web page after a person has chosen from a list in a select statement. Here's what I've got: <form name="select2" method="post"> <select name="groupChoice" id="groupChoice"> <?php for ($j=1; $j<=$i; $j++) { echo '<option value =', $keyn[$j], '>', $selectGr[$j], '</option>'; } ?> </select> <?php echo $i.", ".$_POST['groupChoice'] ?> <p><a href="combSelect.php?keyn=<?php echo $_POST['groupChoice'] ?>">Click here to buy </a> This doesn't work -- I think it is because a person has to actually click on a Submit button before the Post variable works, right? So, then I tried this: <input type="submit" value="go" onclick="document.location = 'combSelect2.php?keyn=<?php echo $_POST['groupChoice'] ?>' "> ... but that doesn't work either; in fact the user isn't redirected. If I use just type="button", they get redirected, but the value is missing again. How can I use a Submit button and still get the redirect to work? Thanks so much for any help you can give me!!
  4. Hi...I'm fairly new to PHP and don't understand why sometimes I have access to a $_POST variable, and sometimes not. Here's my specific question: I'd like my web page to call another page after the user has chosen an item from a SELECT statement. Here's what I've got: <form name="select" method="post"> <select name="groupChoice" id="groupChoice"> <?php for ($j=1; $j<=$i; $j++) { echo '<option value =', $keyn[$j], '>', $selectGr[$j], '</option>'; } ?> </select> <br> <p><a href="combSelect.php?keyn=<?php echo $_POST['groupChoice'] ?>">Click here to buy </a> But when a user clicks on the HREF link, there's a blank where the result of <?php echo $_POST['groupChoice'] ?> should be. So I'm thinking that I need to use a Submit button for the $_POST variable to get a value, right? I tried using onclick="document.location = 'combSelect2.php?keyn=<?php echo $_POST['groupChoice'] ?>' " instead, but the page never went to a new page... How can I send the user to the correct web page based on their choice in the Select? Thanks so much for any insights you can give me!!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.