Re: [PHP] Serving pages based on user input



Ólafur Waage schreef:
You can read about the header function.

http://is2.php.net/manual/en/function.header.php

hi Ólafur,

his situation doesn't require a redirect (he only thinks it does),
and redirects suck when used unecessarily. (plenty of info on the web
about why this is so ... hunt for a 'rant' by the formidable Richard Lynch
in the archives of this list for instance)


Ólafur Waage

2008/8/23 Prasad Chand <prasad.chand@xxxxxxxxx>:
Hi,

I am fairly new to PHP. I would like to serve a page to a user based on his
input. Say, I have a page 1 where user has 3 options(drop down menu). Based
on his selection I would like a php script to direct him to another page (to
pages 2,3,4 based on what he selected). I am unable to figure how to do this
in php. Can you please give me some pointers.

Is there any function which takes path and directs the user to that page?

Thanks,
Prasad

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




.



Relevant Pages

  • Re: Advice on PHP Problem
    ... I am extracting all the categories in the database associated ... As you have already guessed, its not really related to php, however i will point you in the right direction ... Or if you want a more seamless approach learn ajax. ... You can either do a system that continuously makes calls to the data base depending on user selections, using presumably AJAX or simple 'form submits' which is economical on page download size, but high in terms of server side processing, or you download as much of the database as is practicable, and do the selection process locally, using javascript or possibly java, and reserve the updates to the database for when you actually need to modify the data, or the selection takes the user to a radically different place. ...
    (comp.lang.php)
  • Re: clover or golden churn (now ot geek stuff)
    ... work out the user's selection, ... file (separate PHP code which is included with each page). ... and the ShowMenu call wherever I want it in my code... ... // page content for today's weather ...
    (uk.local.glasgow)
  • Re: Selection menu help needed
    ... I have a selection menu that is generated via php and a backend database. ... // draw the page section as it should be without the table ... can't make a general drawing function for all tables. ...
    (alt.php)
  • RE: [PHP] Trying to keep a dropdown selection sticky
    ... The selection will stick until you do a form submit. ... the echo inside the loop is broken into the following; ... [PHP] Trying to keep a dropdown selection sticky ... I have a form I want to keep sticky, ...
    (php.general)
  • RE: [PHP] Menu populated based on previous menu
    ... [PHP] Menu populated based on previous menu ... MANUFACTURERS obtained from a database. ... populated based upon the selection in the first. ... MODELS that are available from the selected MANUFACTURER. ...
    (php.general)