Problem with $_POST vars
Posted: Mon Nov 27, 2006 11:05 am
Hi, I got this form code:
In the same page I got this PHP in the header:
I catch the form name button and his value to make a concrete action if this form has been sent.
I have several of this forms in the page with a concrete action each one and it works fine.
The problem comes when I have test it in another server and it doesn't work at all. It never enter in the above condition.... someone has an idea? Maybe a php.ini configuration.
I've tried globals on the other server and nothing....
Some help will be wellcome

Code: Select all
<form method="post" action="modifica_cnota_url.php?id='.$_GET["id"].'" enctype="multipart/form-data">
<input type="file" name="nueva_img_pres"><input type="image" src="images/disk-icon.gif" value="Save" name="actualiza_adj" style="border:0px;">
<input type="image" name="borra_adjunto" value="borra_adjunto" src="images/tut_email_icon_trash.gif" style="border:0px;">
</form>Code: Select all
if($_POST['actualiza_adj']=="Save")
{
actions.............
}
if($_POST['borra_adjunto']=="borra_adjunto")
{
actions.............
}I have several of this forms in the page with a concrete action each one and it works fine.
The problem comes when I have test it in another server and it doesn't work at all. It never enter in the above condition.... someone has an idea? Maybe a php.ini configuration.
I've tried globals on the other server and nothing....
Some help will be wellcome