Hi,
I have a search page. After the user enters the keyword to be searched and if he presses enter key to search then the page gets refreshed. But if he clicks on the submit button then the result is displayed.What is the problem in the below code. I want the result to be displayed even if user presses enter key.
[code=php]
if (!isset($_POST['Submit'])) {
// form not submitted
?>
<p><strong> Search By Key Skills for:
<input type="text" name="search" />
</strong></p>
<p><a href="advancese arch.php">Advan ce Search</a> </p>
<p> </p>
<input type="submit" name="submit" value="Submit"/>
[/code]
Plz help me out.
I have a search page. After the user enters the keyword to be searched and if he presses enter key to search then the page gets refreshed. But if he clicks on the submit button then the result is displayed.What is the problem in the below code. I want the result to be displayed even if user presses enter key.
[code=php]
if (!isset($_POST['Submit'])) {
// form not submitted
?>
<p><strong> Search By Key Skills for:
<input type="text" name="search" />
</strong></p>
<p><a href="advancese arch.php">Advan ce Search</a> </p>
<p> </p>
<input type="submit" name="submit" value="Submit"/>
[/code]
Plz help me out.
Comment