You are here: conditional « PHP Language « IT news, forums, messages
conditional

Posted by Art on 04/24/07 03:59

Can anyone assist?

I'm trying to use a conditional statement for posting a form with php. The
problem i'm having is everytime I hit the submit button, i have to hit it a
second time to get the form to post. I've checked the variable $holdchk and
see that it's coming back as "0". Has anyone experienced this problem?


<?php
if ($holdchk == 0 ){
echo "<form method=\"POST\" action=\"someform.php\">";

}

if ($holdchk == 1 ){
echo "<form method=\"POST\" action=\"otherform.php\">";

}

?>

Thanks Art

 

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

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