The variable contains: delete from divisies where divisieid='1c'
After posting it contains: delete from divisies where divisieid=
So the part '1c' is magically lost! How is that possible?
This is more or less the code in my form:
$sqldel = "delete from divisies where divisieid='1c' ";
echo"<form action=".$_SERV ER['PHP_SELF']." method='post' >\n";
echo"<input class='serred' type=submit value='Verwijde ren'
name='removecon firm' />\n";
echo"<input type=hidden name=sqldel value='$sqldel' />\n";
echo"</form>\n";
In another part of the form I do this
if isset( $_POST['sqldel'] )
{
$sqldel =$_POST['sqldel']
echo $sqldel; // this prints: delete from divisies where divisieid=
}
I tried several things, like addslashes, stripslashes but nothing
helps to pass my sql query correctly. Anyone?
GB
After posting it contains: delete from divisies where divisieid=
So the part '1c' is magically lost! How is that possible?
This is more or less the code in my form:
$sqldel = "delete from divisies where divisieid='1c' ";
echo"<form action=".$_SERV ER['PHP_SELF']." method='post' >\n";
echo"<input class='serred' type=submit value='Verwijde ren'
name='removecon firm' />\n";
echo"<input type=hidden name=sqldel value='$sqldel' />\n";
echo"</form>\n";
In another part of the form I do this
if isset( $_POST['sqldel'] )
{
$sqldel =$_POST['sqldel']
echo $sqldel; // this prints: delete from divisies where divisieid=
}
I tried several things, like addslashes, stripslashes but nothing
helps to pass my sql query correctly. Anyone?
GB
Comment