Tried all the suggestions from the forums that I have read --but (typical of a newbie) to no avail. Problem is this - I am trying to pass a parameter in a url and the next program will not get it.
The page being call is seldone.php and it is being called from the action element of a form like this action="seldone.php?select=111111"
To ensure this works seldone.php only has these entries:
<?php
echo "in seldone";
$myvar1 =$select;
$myvar2 = $_REQUEST['select'];
$myvar3 = $GET['select'];

echo "MyVar1: ".$myvar1;
echo "MyVar2: ".$myvar2;
echo "MyVar3: ".$myvar3;
?>

No luck on any code...Thanks in advance.

    The best thing is to call the variables as GET when it is GET, POST when it is POST and so on. Then it should be:

    $myvar4 = $_GET['select'];
    echo $myvar4;

    You only miss the _ sign to get it to work. That is of course if you can see everything in the URL, if not then something is wrong in the form page.

      Piranha,
      Thanks for the reply....I am going to include the html of the form....I tried your suggestion and I can't see what I have done wrong. Appreciate any assistance.

      Bob

      <!-- START ANSWER AREA -->
      <form action="seldone.php?select=11111" method="GET"
      onsubmit="return radio_button_checker()" name="radio_form">
      <TABLE BORDER="0" cellpadding="2" cellspacing="0" width="100%">
      <TR><TD>
      <INPUT TYPE="radio" NAME="radio_button" value="1">
      <B>Yes, make Instant Information my start page.</B><BR>
      </TD></TR><TR><TD>
      <INPUT TYPE="radio" NAME="radio_button" value="2">
      <B>No, I wish to enter the regular home page.</B><BR>
      </TD></TR></table>
      <BR>
      <INPUT TYPE="SUBMIT" name="Submit" VALUE="Save">
      <br>

      </FORM>

      this is seldone.
      <?php

      $myvar2 = $_GET['select'];

      echo "MyVar2: ".$myvar2;
      echo "in seldone";
      ?>

        Before I look to much on your code: Does select=1111 show in the URL?

          When you submit the form, the query string is replaced, so that "select=11111" is not submitted. To rectify this, you have two basic options:

          1) Move the 'select' value inside the form as a hidden element (<input type="hidden" name="select" ... />).

          2) Use POST instead of GET.

            Thanks Brad, worked like a charm.....

              Write a Reply...