Forum Moderators: coopster
I have a page,let us say, http://www.example.com/movie.asp and there are few links on the right side of the page. A few examples of the urls visible when I put the cursor on the links:
http://www.example.com/movie.asp?id=1
http://www.example.com/movie.asp?id=2
http://www.example.com/movie.asp?id=3
Lets say there are 20 such links arranged as a list.
Now, I want a few links to open up to another form(combo boxes, or a set of radio buttons, depending upon the link selected)which accepts user input.
For example, the first two, that is , http://www.example.com/movie.asp?id=1 and http://www.example.com/movie.asp?id=2 opens up to a quiz (page has a set of radio buttons). And the third one, http://www.example.com/movie.asp?id=3 opens up to a page having a combo box.
I cannot find out how to show these form elements dynamically. Can anyone please suggest something?
[edited by: dreamcatcher at 4:45 pm (utc) on June 4, 2008]
[edit reason] use example.com. Thanks. [/edit]
Actually I am working in PHP and I would like to know how to do this in PHP, though it seems to me that its more about logic than the syntax.
So these links would be:
http://www.example.com/movie.php?id=1
http://www.example.com/movie.php?id=2
http://www.example.com/movie.php?id=3
Thanks..
[edited by: dreamcatcher at 4:45 pm (utc) on June 4, 2008]
[edit reason] use example.com. Thanks. [/edit]
You could have three landing pages:
movie1.php, movie2.php etc...
OR
Only movie.php
and use a switch [us2.php.net]
to determine which form serving
The landing page will be reading the passed value as $_GET (super global) [us2.php.net] $_GET [w3schools.com]
Hope this may start you
[edited by: dreamcatcher at 4:46 pm (utc) on June 4, 2008]
[edit reason] use example.com. Thanks. [/edit]