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'];
$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

search query in mysql in php problem
my search query wont work, i know, that my codes are correct.please help

Code: [Select]&l

help with this code please?
Hello,

I am trying to build a remote upload script for my image hosting site.

I am usi

OOP help
okay so i have a class im making it has everything setup i just need to randomize the 2 variables an

Javascript using window.location seems to lose state
Not sure what forum so let me know if I'm in the wrong place. I have a main window with a ajax grid

insert quotes
Hi,

I have an output like this:
Code: john,18,Cancer
How can I change this to
Code:

controlling/creating accounts with privileges
hi all,
i'm trying to figure out how i can create/control account with privileges, for instance a

How to make a input/output field with multiple lines
Hello.
I put a input/output field on the screen but I could not change height of it. I need to

Change image filetype on upload?
Hi,
I've got a form which uploads an image to the server.
Is it possible to change the image t

str_replace help
I am thinking str_replace is my only option to filter outputs from my database to convert them to sa

Apart from cron
I need to run a php file every one hour. Is there any other solution apart from cron job?

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