Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 06-20-2008, 01:22 AM Help in PHP
Junior Talker

Posts: 3
Name: William
Trades: 0
Hi, im new here, im currently doin 1 year web technology at college john abbott.
I have this php project for tomorow that im stuck with.

i have 3 pages , 1-index.html , 2-categories.php and 3-catalogue.php.

in the second page , i have 3 radio buttons that must link to the third page wich is catalogue.php.

the catalogue.php must display different products depending on wich category(in page 2) the user selected.
the catalogue page should be dynamically generated.

NOW how can i do that?
Thx
y2vvill is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-20-2008, 02:25 AM Re: Help in PHP
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
I'm not going to do your requirement for you but:
1) You transmit infos from a page to another page using forms.
declare a form with input=radio in your categories.php page and have it to send them to your catalog page
2) Depending of the form method you have used, you will find in $_POST or $_GET the values the user submitted in forms, and it's up to you to process it.
so, for instance, get the value of the field named "cat".
then you craft a SQL query with the value of that category, and iterate over the rows returned by the db to display them one by one.
3) don't forget a link to get back at step 2, to allow the user to modify his choices

and it's all. with experience, it's a 10 minute job.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 06-21-2008, 09:34 AM Re: Help in PHP
Junior Talker

Posts: 3
Name: William
Trades: 0
thx alot, ill be usin post for the first one since theres username and password login , and get for the other.
y2vvill is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help in PHP
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB 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.35226 seconds with 12 queries