You are here: Re: Form Data Not Sent by Browser « PHP Programming Language « IT news, forums, messages
Re: Form Data Not Sent by Browser

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация