X
Xerxes
Hi,
I am trying to pass the value of a field to a PHP file like this:
<input type="hidden" name="field1" id="field1" value="123">
<input type="hidden" name="field2" id="field2" value="456">
<a href =
"test.php?c1=document.getElementById('field1').value&c2=document.getElementById('field2').value
In test.php, when I do:
c1=$_GET['c1'] ;
echo c1;
I get:
c1 = document.getElementById(\'field1\').
I am trying to pass the value of a field to a PHP file like this:
<input type="hidden" name="field1" id="field1" value="123">
<input type="hidden" name="field2" id="field2" value="456">
<a href =
"test.php?c1=document.getElementById('field1').value&c2=document.getElementById('field2').value
<img src="add.gif" border="0"></a>
In test.php, when I do:
c1=$_GET['c1'] ;
echo c1;
I get:
c1 = document.getElementById(\'field1\').