Reply to Re: POST problems

Your name:

Reply:


Posted by Ant on 10/30/05 18:42

"EmC" <enricom@FASULLAtiscali.it> wrote in message
news:43623eb7$0$8496$5fc30a8@news.tiscali.it...
> Ant ha scritto:
>> "EmC" <enricom@tiscali.it> wrote in message
>> news:43611111$0$8499$5fc30a8@news.tiscali.it...
>>
>>>Did you forget to close </form>, perhaps?
>>>Bye
>>>
>>
>>
>> I only pasted in the first part of the form to give some context to my
>> problem. There is a problem with my php setup somewhere I believe as
>> this
>> was suggested to me in another group.
>>
>> *****
>>
>> Try the following as a test:
>>
>> <?php
>>
>> echo $_POST['var'];
>>
>> ?>
>> <form name="form" method="post" action="<?php echo $PHP_SELF; ?>">
>> <input name="var" type="text" id="var">
>> <input type="submit" name="Submit" value="Submit">
>> </form>
>>
>> ***
>>
>> And I get the same error:
>>
>> Undefined index: var
>>
>> So I really don't understand what's going wrong! Bit of a nightmare.
>>
>>
> Try this:
> <form name="form" method="post" action="<?php echo
> $_SERVER["PHP_SELF"];?>">
> Good luck


Thanks for the reply. Unfortunately nothing happens when I clcik submit -
well it loads the page again but from the code I would have suspected the
textbox value would have been echod to the screen.

Maybe my php installation is borked?

[Back to original 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

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