Jump to content

button help


MDanz

Recommended Posts

i originally had this but realised it is much easier to have a button.

 

<?php
$search = $_GET['search'];
$checkbox = $_GET['checkbox'];
if($checkbox == 'on')
{
include("searchtopic.php?search=$search");

}
else
{
  include("searchnormal.php?search=$search");
}


?>

 

 

how do i make a button that anytime it is clicked it refreshes the page and includes the opposite of whatever searchtype it was previously on (searchnormal.php or searchtopic.php)?

 

 

Link to comment
https://forums.phpfreaks.com/topic/177685-button-help/
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.