You are here: Re: POST, GET and variables ? « PHP Programming Language « IT news, forums, messages
Re: POST, GET and variables ?

Posted by Tom on 02/15/07 19:17

On Thu, 15 Feb 2007 15:06:13 +0100, dirk wrote...
>
>Hello,
>
>
>As beginner, I'm a bit confused by passing 2 variables using a html-form
>with method=POST. If passing one of them, it works ; if passing both
>together, nope. At least when I reload the same page by using
>$_SERVER["PHP_SELF"] in an included file (inc.php) it doesn't work.
>Referring to another "page.php" is succesfull. Also passing both variables
>with the GET-method works. Can somebody help me please ?
>Thank you,
>Dirk.


I was able to get $_GET and $_POST variables to work from the same form. Since
you would need the $_POST information, try checking your form's method to make
sure "post" is defined. In your action, make sure your variables are formatted
correctly such as "/path/script?var1=value1+var2=value2". Then make sure you
have the right $_GET and $_POST variables setup for the appropriate form field.

Tom
--
Newsguy.com
75+ days of Binary and Text Retention!
Higher levels of article completion!
Broader coverage of newsgroups

 

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

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