| Posted by JackM on 04/27/06 22:03 
vincecarney@gmail.com wrote:> php script:
 >
 > <?php
 > echo "$name";
 > ?>
 >
 > html form:
 >
 >
 > <form action="handle_form.php" method="post">
 >   <fieldset><legend>Enter your information in the form below:</legend>
 >   <table width="100%" border="0">
 >   <tr>
 >     <td width="16%"><strong>Name:</strong></td>
 >
 > If I use method="get" in the html form the data entered in the name
 > text box is not sent to the URL.
 >
 > FYI - I already tried register globals = ON.
 >     <td width="84%"><input type="text" name="name" /></td>
 >   </tr>
 > </table>
 > </fieldset>
 > </form>
 >
 
 Use print_r($_POST); on the handle_form.php to be sure that the info is
 being passed from the form. If it is there, does handle_form.php have a
 method coded on it to extract the variables? If not, you need to use
 $_POST['name'] when you call it.
 
 
 
 Jack
  Navigation: [Reply to this message] |