button help


Posted on 16th Feb 2014 07:03 pm by admin

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

Code: <?php
$search = $_GET['search'];
Did you know?Explore Trending and Topic pages for more stories like this.
$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)?
No comments posted yet

Your Answer:

Login to answer
181 Like 24 Dislike
Previous forums Next forums
Other forums

PHP search multiple input field box help
I am having a problem with my search script. At current it will simply search by a selected date whi

Help with php code
Hello, can anyone tell me why this php word trap fails to work,
and the trigger words get blow r

Dynamically allocating the number of rows in a table based on a variable value
Hi,
I have situation here which i cannot resolve, I have a variable temp which stores the num

mysql select with $_get ?
Hi, i have this code:
Code: // If char id is 0 and character dont exist do:
if ($_GET["id

newbie question about multiple queries
hi everyone,
I'm sorry to ask such a basic question, but I'm young and trying to learn php on my

Need PHP help... have all the elements... just need help putting them together :
Hey Guys,

I was wondering if someone could help me. I am doing a website for a client which

Linkage between two scripts
Okay say I have this for a link in a script:

Code: <li><a href="#&q

PHP Function Page Advice
Hi All, I am quite new to PHP and Javascript but have written an Online Shop (Mainly for Fun and edu

include problem
I have my root folder as:
Code: $root = $_SERVER["SITE_HTMLROOT"]; // the server root<

values not being entered into table
hi. I;ve created a form, so that when a user enters data into it, it gets added to a table in a data

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash