Hi folks,
I seem to be using these newsgroups a good bit and probabely will be for the
next three or so months.
I wonder if there is a workaround to a problem I'm having. PHP always says
that variables are undefined for the first time I visit a page. I have
register_global s on and on the second visit a page when a certain post
variable 'has' a value and been defined.
Here's a bit of code I'm working with now.
<?php
if($deleteFlag= ="yes") {unlink($filena me);
echo "$filename successfully deleted";}
else
{
echo "<table><tr bgcolor='#FFFF0 0' align=center><t d><b>Are you sure you want
to delete "$filename "?
<br>This action cannot be undone</b>";
}
?></td></tr><tr align=center><t d><form action="delete. php" method="post"
name="delete">< input name="deleteFla g" type="hidden" value="yes" />
<input name="Submit" type="button" value="Confirm" />
<input name="cancel" type="button" value="Cancel"
/></form></td></tr></table>
</td></td></table>
Basically i want to be able to tell the script that the confirm button was
pressed and to actually delete the file
I seem to be using these newsgroups a good bit and probabely will be for the
next three or so months.
I wonder if there is a workaround to a problem I'm having. PHP always says
that variables are undefined for the first time I visit a page. I have
register_global s on and on the second visit a page when a certain post
variable 'has' a value and been defined.
Here's a bit of code I'm working with now.
<?php
if($deleteFlag= ="yes") {unlink($filena me);
echo "$filename successfully deleted";}
else
{
echo "<table><tr bgcolor='#FFFF0 0' align=center><t d><b>Are you sure you want
to delete "$filename "?
<br>This action cannot be undone</b>";
}
?></td></tr><tr align=center><t d><form action="delete. php" method="post"
name="delete">< input name="deleteFla g" type="hidden" value="yes" />
<input name="Submit" type="button" value="Confirm" />
<input name="cancel" type="button" value="Cancel"
/></form></td></tr></table>
</td></td></table>
Basically i want to be able to tell the script that the confirm button was
pressed and to actually delete the file
Comment