Jump to content

Submit Value


Drezard

Recommended Posts

Usually I can use code like this:

 


<?php

if (!isset($_GET['submit']))
{

echo "<form method='get'>
Search: <input type='text' name='keywords'> <br />
<input type='submit' name='submit'>
</form>";

}
else {

echo $_GET['keywords'];

}

?>

And it will echo the keywords when you enter them... but for some reason that form, wont submit the 'submit' variable. Whats going on?

Daniel

Link to comment
https://forums.phpfreaks.com/topic/193433-submit-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.