Code: Select all
<HTML>
<HEAD>
</HEAD>
<BODY>
<FORM ACTION="Query.php">
Name :
<INPUT name=txtName>
<INPUT type="Submit" value="Search" name=SubmitBasicSearch>
</FORM>
</BODY>
</HTML>If we hit the enter key, it goes here :
http://localhost/Query.php?txtName=john
If we click then search button, it goes here :
http://localhost/Query.php?txtName=john ... rch=Search
In my php code of Query.php I have this
Code: Select all
<?php
if (isset($SubmitBasicSearch)) SearchName($txtName);
?>I already tried a javascript code for onkeypress in the txtName(gave id for that) and did document.open() etc etc but it didn't work either.
I do not want to do
Code: Select all
<?php
if (isset($txtName)) SearchName($txtName);
?>Thanks