getting object inplace of string
Posted: Wed Mar 19, 2008 11:36 pm
Hi when I post something with the hidden control I'm getting [object]. I cant see the string.
its like this:
this is in edit.php
<?PHP
//note that I've kept this outside the form
echo "<input type='hidden' name='filename' value='$filename' />" ;
?>
<form>
....
</form>
this is in backendajax.js which is used with edit.php using javascript src="backend.js"
xmlHttp.open("GET", "updatedetails.php?filmname=" + name +"&musicDir="+ musicDir+"&writer="+ writer+"&filename="+ filename, true);
this is in edit_back.php
$filename = $_GET['filename'];
now when I print $filename it is priniting as "[object]" with the brackets.
all the other fields are working fine.Problem is with this only.
Thanks in advance
its like this:
this is in edit.php
<?PHP
//note that I've kept this outside the form
echo "<input type='hidden' name='filename' value='$filename' />" ;
?>
<form>
....
</form>
this is in backendajax.js which is used with edit.php using javascript src="backend.js"
xmlHttp.open("GET", "updatedetails.php?filmname=" + name +"&musicDir="+ musicDir+"&writer="+ writer+"&filename="+ filename, true);
this is in edit_back.php
$filename = $_GET['filename'];
now when I print $filename it is priniting as "[object]" with the brackets.
all the other fields are working fine.Problem is with this only.
Thanks in advance