You are here: Re: Basic variable passing « PHP Programming Language « IT news, forums, messages
Re: Basic variable passing

Posted by ZeldorBlat on 11/07/06 17:42

Jerim79 wrote:
> I am setting up a web form that will take data and pass it along to a
> PHP script. I am noticing that the PHP doesn't get the information from
> the HTML, or at least isn't displaying it. I set up a basic "test"
> HTML/PHP combo. Here is what I have for the HTML:
>
> <html>
> <head>
> </head>
> <body>
> <form method=post action="test.php">
> <INPUT NAME="Author" TYPE="text">
> <input type=Submit >
> </form>
> </body>
> </html>
>
> Here is what I have for the PHP:
>
> <html>
> <head>
> </head>
> <body>
> <?php
> echo $Author;
> ?>
> </body>
> </html>
>
> I have verified that PHP is installed on the server using phpinfo(). I
> tried both the POST and GET methods. The PHP just comes up blank (If I
> type in HTML text, it displays, so I know test.php is being called). I
> even tried removing all HTML tags from test.php. I have tried uploading
> the the same pages to two different servers. Any help will be greatly
> appreciated.

Change $Author to $_POST['Author'] then read this:
<http://www.php.net/register_globals>

 

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

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