Welcome to WebmasterWorld Guest from 54.205.119.93

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Dynamic links opening up to forms

   
11:05 am on Jun 4, 2008 (gmt 0)

5+ Year Member



Hello

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]

12:02 pm on Jun 4, 2008 (gmt 0)

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Shouldn't this post be posted in ASP?
2:38 pm on Jun 4, 2008 (gmt 0)

5+ Year Member



Oh! I was just studying another site built in ASP and using it as a reference. And while posting this topic, I used the .asp extension by mistake. Apologies for that.

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]

3:15 pm on Jun 4, 2008 (gmt 0)

WebmasterWorld Senior Member henry0 is a WebmasterWorld Top Contributor of All Time 10+ Year Member



http://www.example.com/movie.php?form_id=1
http://www.example.com/movie.php?form_id=2
http://www.example.com/movie.php?form_id=3

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]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month