/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Link out of a Drop Down menu

Hello,

I am creating a website where there are several links to login forms (don’t ask me why). One of the options is a drop down menu where the user selects from a drop down menu which login area they want to go to (Investor and Administrator).

I was wondering, using PHP, how I would successfully achieve this. I would like the user to select which login they want, and then upon clicking “submit” they are directed to the corresponding page.

Thanks in advance!

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@SyCoApr 28.2008 — Glad you solved it. Threads like this sometimes rank well in google. Posting the solution to the problem is really useful to anyone else trying to work out the same thing.

So for all you Googlers out there ... ?

The value from the drop down is available in the $_POST (or $_GET) array. Look to see what was chosen and display or redirect accordingly.
×

Success!

Help @Design-is-BS spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...