Reply to Re: Problems with 'if' statement

Your name:

Reply:


Posted by Alvaro G. Vicario on 08/10/06 22:06

*** mantrid escribió/wrote (Thu, 10 Aug 2006 19:27:45 GMT):
> <form action="<?php if(isset($updatestats)){
> echo $_SERVER['PHP_SELF'];
> }else{
> ?>excelsave.php<?php
> }?>" method="post" enctype="multipart/form-data"
> name="savestatments">
>
>
> problem is whatever button is pressed the excel.php is run. what is wrong
> with my 'if.. ' statement?

I find it pretty unlikely that the problem is in the if() part. What makes
you think so? Have you var_dumped() your $_POST array? Does $updatestats
have the correct value?


--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--

[Back to original 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

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