You are here: problems with form « PHP Programming Language « IT news, forums, messages
problems with form

Posted by Neil Jones on 05/22/06 22:25

I am having difficulty with a form processing script.
This cut down version also exhibits the problem
The idea is to input the data and then click the submit button
to process it, but it just reloads the form.

Can anyone point out where I am going wrong?
In case there is an effect I am running it on a linux machine
on my desktop via 127.0.0.1
The file is called pdcd1.php,so it calls itself.

<?
if (!$submitm)
{
?>
<form method="post" action="pfcd1.php" name="main">
<?
print"<input type=\"radio\" name=\"mastercontrol\" value=\"on\">";
?>

<input type="submit" name="submitm" value="submitm"></form>
<?
}
else
{
print "<html><br>";
print "PROCESSED";
}


--
Neil Jones
neil@nwjones.demon.co.uk

 

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

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