Posted by mantrid on 08/10/06 19:27
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
Navigation:
[Reply to this message]
|