By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,384 Members | 671 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,384 IT Pros & Developers. It's quick & easy.

HTML FORMS AND PHP

P: n/a
Rob
I've been studying some tutorials but I can't seem to wrap my mind around
this...

When I implement a menu (in my case a drop down menu) how can I tell the
Action to do one thing if one menu item is chosen and another if another
item is chosen?

If I can't do it from the menu itself how do I process it in the page I
call?

I'm trying to writhe an "if" statment like this:

If ($TChoice = "Dothisselection")
How do I call a diffrent page?;
I've read through a few tutorials and I can't seem to figure out how to call
a diffrent page! I'm new to HTML and PHP so I'm sure it's painfully obvious.
Thanks for the help.

Rob
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
I noticed that Message-ID: <Rf********************@comcast.com> from Rob
contained the following:
I'm trying to writhe an "if" statment like this:

If ($TChoice = "Dothisselection")
How do I call a diffrent page?;
I've read through a few tutorials and I can't seem to figure out how to call
a diffrent page! I'm new to HTML and PHP so I'm sure it's painfully obvious.
Thanks for the help.


Check out include()

--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/
Jul 17 '05 #2

P: n/a
Regarding this well-known quote, often attributed to Rob's famous "Sun, 23
Nov 2003 01:02:28 -0700" speech:
I've been studying some tutorials but I can't seem to wrap my mind around
this...

When I implement a menu (in my case a drop down menu) how can I tell the
Action to do one thing if one menu item is chosen and another if another
item is chosen?

If I can't do it from the menu itself how do I process it in the page I
call?

I'm trying to writhe an "if" statment like this:

If ($TChoice = "Dothisselection")
How do I call a diffrent page?;
I've read through a few tutorials and I can't seem to figure out how to call
a diffrent page! I'm new to HTML and PHP so I'm sure it's painfully obvious.
Thanks for the help.

Rob


Instead of using an include(), I'd recommend using:

header("Location: $pagetogoto");

in the script that gets called. You can't do this from the page with the
menu, unless you use JavaScript fancies.

--
-- Rudy Fleminger
-- sp@mmers.and.evil.ones.will.bow-down-to.us
(put "Hey!" in the Subject line for priority processing!)
-- http://www.pixelsaredead.com
Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.