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

Return X values where an ID number doesnt matter
Well as for subject heading, thats the best i could think of.

Currently im having a problem w

How to generate a random array of integers subject to a certain constraint
I am writing a program that asks the user to enter an integer N and then generates a random array of

server trace logs
could any one tell me from where do i get error logs in xMII??I want to check the reason for dtabase

From Header Showing 'Unkown' In Hotmail? Why?
Code: $to = $row_GetID['email_addr'].',sales@mywebaddress.co.uk';
$subject = 'Thank you for you

Deleting pointers froms vector?
Hi. I have a vector filled with pointers and I want to delete the pointers. I could do a loop and do

convert static html data into dynamic
hi all

i need to convert a website which has static above 2000 articles into dynamic and add

Filename like the user name
I am creating a form and storing the values in file. Could anyone please tell me how to write a code

breaking a text file into paragraphs based on strings
I have a text file of email addresses that is all squished together. It looks like this:

abc

Problem with passing variables
I'm not really a php programmer so I'm really struggling with this issue.

I have a banner s

foreach result into a single variable
Hi,

I have this code...

Code: [Select]foreach ($_POST['Interests'] as $interest =&

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