Reply
How do I make clicking a link create a $_GET value
Old 04-16-2007, 12:33 AM How do I make clicking a link create a $_GET value
Average Talker

Posts: 23
Problem Solved.thanks!

Last edited by mattgoldman : 04-16-2007 at 04:52 AM.
mattgoldman is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
     
Old 04-16-2007, 03:00 AM Re: How do I make clicking a link create a $_GET value
JeremyMiller's Avatar
Full-Time TeraTasker

Posts: 953
Name: Jeremy Miller
Location: Reno, NV
This shows you 2 ways of generating a $_GET post: http://www.w3schools.com/php/php_get.asp

Basically just include the category's id for constructing whatever it is you're building.
__________________
Jeremy Miller - TeraTask Technologies, LLC
Content Farmer - Automated Posting for Content & Blog Sites
JeremyMiller is offline
Reply With Quote
View Public Profile Visit JeremyMiller's homepage!
 
Old 04-16-2007, 03:12 AM Re: How do I make clicking a link create a $_GET value
kids's Avatar
Ultra Talker

Posts: 271
Quote:
Originally Posted by mattgoldman View Post
I have a catalog with several links and one generic listing page. I would like the sql results to change based on which category the user clicks on. Is $_GET the best way to pass the information to the listing page from the index? If so, how do I go about doing this? Thanks so much!
It's hard to understand what you want. But you can make link like this
_http://yourdomain/cat?=X
then
PHP Code:
<?php
if (isset($_GET['cat']){
  use 
sql query here with WHERE cat=X
  
while (){
    
show each item or do something here
  
}
}
?>
Ok?
kids is offline
Reply With Quote
View Public Profile Visit kids's homepage!
 
Reply     « Reply to How do I make clicking a link create a $_GET value
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11964 seconds with 13 queries