Jump to content

[SOLVED] Code for Submit Button?


anon

Recommended Posts

<?php
   if (isset($_POST['search_sent'])) {
      print_r($_POST);
   }
?><form name="search_form" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>" method="POST">
<input type="text" name="search" value="" /><input type="submit" name="go" value="Search" />
<input type="hidden" name="search_sent" value="1" />
</form>

<?php
   if (isset($_POST['search_sent'])) {
      print_r($_POST);
   }
?><form name="search_form" action="<?= htmlspecialchars($_SERVER['PHP_SELF']) ?>" method="POST">
<input type="text" name="search" value="" /><input type="submit" name="go" value="Search" />
<input type="hidden" name="search_sent" value="1" />
</form>

THANKS ALOT, but how would i get the search box to be bigger?

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.