Re: [WSG] Select that goes to a new URL

2007-07-10 Thread Paul Collins

Genius, that's solved it, thanks Andrew! No-one had replied to me on
Sitepoint yet...

In answer to your question, the client has added it as a measure to
save valuable space on the left hand Nav. There could be more courses
getting added too, so I guess I can see their point in some ways, as
long as I can make it accessible I'm not too fazed.

Thanks again for your help
Paul


On 10/07/07, Andrew Maben <[EMAIL PROTECTED]> wrote:


On Jul 10, 2007, at 12:20 PM, Paul Collins wrote:



http://localhost/includes/redirect.php";;
name="selectCourse"

id="selectCourseForm">
Should be : method="post" NOT action="post"

But I have to wonder why the need to use this method to form a purely
navigational function..? Unless you're collecting other data within the form
before the redirect?

Andrew


109B SE 4th Av
Gainesville
FL 32601

Cell: 352-870-6661

http://www.andrewmaben.net
[EMAIL PROTECTED]

"In a well designed user interface, the user should not need instructions."


***
List Guidelines:
http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe:
http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Select that goes to a new URL

2007-07-10 Thread Andrew Maben

On Jul 10, 2007, at 12:20 PM, Paul Collins wrote:


http://localhost/includes/redirect.php";; name="selectCourse"
id="selectCourseForm">


Should be : method="post" NOT action="post"

But I have to wonder why the need to use this method to form a purely  
navigational function..? Unless you're collecting other data within  
the form before the redirect?


Andrew

109B SE 4th Av
Gainesville
FL 32601

Cell: 352-870-6661

http://www.andrewmaben.net
[EMAIL PROTECTED]

"In a well designed user interface, the user should not need  
instructions."





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***

Re: [WSG] Select that goes to a new URL

2007-07-10 Thread Paul Collins

Thanks for your help guys, makes more sense. It still isn't working
though, so I'll go find another forum to post to about PHP.

Cheers
Paul


On 10/07/07, Ross Bruniges <[EMAIL PROTECTED]> wrote:

you should use $_POST['New_URL'] - thats going to be the value of the select 
box. Looking at your code there is nothing called ID on there!

and also - PHP is really off topic of this list, not sure of any PHP mailers 
but the sitepoint forums always get me out of bother!

- Original Message 
From: Paul Collins <[EMAIL PROTECTED]>
To: "wsg@webstandardsgroup.org" 
Sent: Tuesday, 10 July, 2007 3:57:58 PM
Subject: [WSG] Select that goes to a new URL

Hi all,

This should be pretty basic stuff, but coding the forms can be a bit
above me sometimes :) I've hunted around and can't seem to find the
answer, so here goes...

I've got a select box, with a bunch of options that need to go to
another page in the website when the go button is clicked. I'm running
this on my localhost, so not sure if the CGI scripts are all there, I
am running PHP though, so it would be ideal to set it up that way.

Here is my code, would appreciate any links/advice.  Cheers

http://localhost/includes/redirect.php";; name="selectCourse"
id="selectCourseForm">


Select a course
http://localhost/courses/artsAndMedia.php";>Arts
& Media
http://localhost/courses/businessAndPublicServices.php";>Business
& Public Services
http://localhost/courses/careTravelAndTourism.php";>Care Travel
& Tourism
ESOL & Languages
Hair, Beauty & Sport
Humanities & English
ICT & Maths
Performing Arts & Media
Skills for life
Science






I've tried it with this redirect PHP script, but doesn't seem to work:




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***







___
What kind of emailer are you? Find out today - get a free analysis of your 
email personality. Take the quiz at the Yahoo! Mail Championship.
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***





***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



Re: [WSG] Select that goes to a new URL

2007-07-10 Thread Ross Bruniges
you should use $_POST['New_URL'] - thats going to be the value of the select 
box. Looking at your code there is nothing called ID on there!

and also - PHP is really off topic of this list, not sure of any PHP mailers 
but the sitepoint forums always get me out of bother!

- Original Message 
From: Paul Collins <[EMAIL PROTECTED]>
To: "wsg@webstandardsgroup.org" 
Sent: Tuesday, 10 July, 2007 3:57:58 PM
Subject: [WSG] Select that goes to a new URL

Hi all,

This should be pretty basic stuff, but coding the forms can be a bit
above me sometimes :) I've hunted around and can't seem to find the
answer, so here goes...

I've got a select box, with a bunch of options that need to go to
another page in the website when the go button is clicked. I'm running
this on my localhost, so not sure if the CGI scripts are all there, I
am running PHP though, so it would be ideal to set it up that way.

Here is my code, would appreciate any links/advice.  Cheers

http://localhost/includes/redirect.php";; name="selectCourse"
id="selectCourseForm">


Select a course
http://localhost/courses/artsAndMedia.php";>Arts
& Media
http://localhost/courses/businessAndPublicServices.php";>Business
& Public Services
http://localhost/courses/careTravelAndTourism.php";>Care Travel
& Tourism
ESOL & Languages
Hair, Beauty & Sport
Humanities & English
ICT & Maths
Performing Arts & Media
Skills for life
Science






I've tried it with this redirect PHP script, but doesn't seem to work:




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***







___ 
What kind of emailer are you? Find out today - get a free analysis of your 
email personality. Take the quiz at the Yahoo! Mail Championship. 
http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk 


***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



RE: [WSG] Select that goes to a new URL

2007-07-10 Thread Chris Taylor
Your select "name" attribute is "New_URL" but you're looking for a POST
attribute called "id". Change your PHP script to $_POST["New_URL"] and it
should work.

Chris



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Collins
Sent: 10 July 2007 15:58
To: wsg@webstandardsgroup.org
Subject: [WSG] Select that goes to a new URL

Hi all,

This should be pretty basic stuff, but coding the forms can be a bit
above me sometimes :) I've hunted around and can't seem to find the
answer, so here goes...

I've got a select box, with a bunch of options that need to go to
another page in the website when the go button is clicked. I'm running
this on my localhost, so not sure if the CGI scripts are all there, I
am running PHP though, so it would be ideal to set it up that way.

Here is my code, would appreciate any links/advice.  Cheers


http://localhost/includes/redirect.php"; name="selectCourse"
id="selectCourseForm">



Select a course
http://localhost/courses/artsAndMedia.php";>Arts
& Media
http://localhost/courses/businessAndPublicServices.php";>Business
& Public Services
http://localhost/courses/careTravelAndTourism.php";>Care Travel
& Tourism
ESOL
& Languages

Hair, Beauty & Sport

Humanities & English
ICT
& Maths

Performing Arts & Media

Skills for life

Science






I've tried it with this redirect PHP script, but doesn't seem to work:




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***



[WSG] Select that goes to a new URL

2007-07-10 Thread Paul Collins

Hi all,

This should be pretty basic stuff, but coding the forms can be a bit
above me sometimes :) I've hunted around and can't seem to find the
answer, so here goes...

I've got a select box, with a bunch of options that need to go to
another page in the website when the go button is clicked. I'm running
this on my localhost, so not sure if the CGI scripts are all there, I
am running PHP though, so it would be ideal to set it up that way.

Here is my code, would appreciate any links/advice.  Cheers

http://localhost/includes/redirect.php"; name="selectCourse"
id="selectCourseForm">


Select a 
course
http://localhost/courses/artsAndMedia.php";>Arts
& Media
http://localhost/courses/businessAndPublicServices.php";>Business
& Public Services
http://localhost/courses/careTravelAndTourism.php";>Care Travel
& Tourism
ESOL & 
Languages
Hair, Beauty 
& Sport
Humanities 
& English
ICT & 
Maths
Performing Arts 
& Media
Skills for 
life

Science

 




I've tried it with this redirect PHP script, but doesn't seem to work:




***
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
***