Posted by mantrid on 08/11/06 02:15
>
> I think your problem is not the if statement - I suspect $updatestats
> isn't being set. What code do you have that sets it?
>
That occured to me so I tried
<form action="<?php if(isset($_POST['updatestats'])){
instead of
<form action="<?php if(isset($updatestats)){
but still no luck, but I got round it by getting rid of the 'if' in the form
action and placing them at the top of the page, as below
****************************************************
if(isset($download)){
header("Location: http://www.mysite.co.uk/excelsave.php");
}
if(isset($updatestats)){
script for creating confirmation version of original page
}
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"
enctype="multipart/form-data"> name="savestatments">
***************************************************
However I would still like to know why the first method didnt work.
Thanks all for the support
Ian
Navigation:
[Reply to this message]
|