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

Posted by william.hooper on 10/14/07 11:13

If I have a form:

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

then in test.php I could write:

$value = $_POST['hello'];

to set $value="Delete".

But what if I wanted to get "hello" out instead of "Delete". Ie how
can I tell the variables inside the porm submit instead of just the
values of the variables?

Many Thanks... I am new to PHP and can not find this info despite
searching around for a while!

 

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

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