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

Advice on how to delete a mysql row using my form
Hi,

I am very new to php and am struggling to work out how to delete a portfolio item (a row

simple script won't work. Please help
I'm new to php, and I am having trouble displaying a simple script in my web browser. My php code ex

Different actions for different parts of a string
<?php
function dosomething($string, $else = '') {
if (empty($else))
$string

How to assign a textbox value to PHP variable??
Hi ! Can any one help me out as quickly as possible. As I m new to PHP.
Plz tell me how to assign

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

retrieving images from mysql database using php
So I've been trying to figure out how to store images in a mysql database, and as far as i can tell

webpage with (simple) login & mysql-db
Hi all,

What I was looking for before was a multi-user password manager, web-based! The offer

Is there something wrong?
Hi all,

Just a quick question... can someone look at this code and see if something is wrong?

how do i make a string??
hey guys,
can someone please tell me how to put data from the glob function into a string

Problem executing bash script using shell_exec
Hi there,
I created a bash script file using following code to convert doc documents to pdf using

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