You are here: Re: Getting variable names passed to form in php « PHP Programming Language « IT news, forums, messages
Re: Getting variable names passed to form in php

Posted by william.hooper on 10/14/07 12:05

Oh thankyou but I am tearing my hair out.

I have this html:

<html>
<head></head>
<body>
<FORM ACTION="test.php"><INPUT TYPE=SUBMIT NAME="hello"
VALUE="Delete"> </FORM>
</body>
</html>

and if I make test.php this:

<?php

echo 'Hello World!';

?>

but when I try your code it's just blank. in fact i am struggeling to
get anything except this hello world example to work and i have tried
a few from the internet. it's killing me (i am not stupid - lots of c#
experience):


<?php
if(!empty($_POST)){
foreach($_POST as $key => $value){
//'hello' should be a key:
echo "$key:$value\n";
}

}
?>

 

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

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