I want to pass information from an HTML form to a PHP page. My problem is that the data from the form is not getting submitted. What am I doing wrong ?
HTML FORM
<div id="go">
<form method="get" action="client_authorized.php">
<fieldset>
<input type="text" name="query" class="input-text" />
<input type="submit" value="Secure Client Access" class="input-submit" />
</fieldset>
</form>
</div>
client_authorized.php
<?php
print $_GET['query'];
?>
Basicly your second
<form/>overrides first<form/>elements, therefore loses data when posted.Oh, by the way PHP’s
print();won’t print out your array data (at least I think so..), you should useprint_r();orvar_dump();instead.