I want to send query in Html form 'action' to get data from other site.
let suppose my url is http://abc.xyz/index.jsp?number=<?php echo $number;?>
Problem is i can't execute php script in form action.When i press submit it just go to http://abc.xyz/index.jsp?number= without php output value.Is it possible that way?
Please help me.
Here is my code
<?php
error_reporting(E_ALL ^ E_NOTICE);
if (isset($_POST['submit']))
{
$number = $_POST['number'];
}
?>
<form id="form1" name="form1" method="post" action="http://abc.xyz/index.jsp?number=<?php echo $number;?>">
<table width="322" height="225" border="1" align="center">
<tr>
<td height="80">Enter Number</td>
<td><input type="text" name="number" id="number" /></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" name="submit" id="submit" value="Submit" /></td>
</tr>
</table>