You are here: Re: Problems with 'if' statement « PHP Programming Language « IT news, forums, messages
Re: Problems with 'if' statement

Posted by Jerry Stuckle on 08/11/06 01:41

mantrid wrote:
> Hello
> I have used the following php script in the form action to determine whether
> to post the same page again or open the php file called excelsave.php
> depending on which of two submit buttons is pressed in the form
>
> <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?
>
> ian
>
>

Ian,

I think your problem is not the if statement - I suspect $updatestats
isn't being set. What code do you have that sets it?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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