On 12/12/07, James Keeline <[EMAIL PROTECTED]> wrote:

> Gordon,
>
> My advice is similar though I would probably set the form to use POST and then
> assemble your URL and use a header() function to redirect to it.  I'm guessing
> that the data needs to be in a particular order in the URL so you will have to
> deal with that and a blind join() or implode() might have unpredictable
> results, especially if someone is trying to abuse your form by sending
> unexpected data to try to break your application.

Thank you (& to the others)..

Basically the main PHP is already designed (a FAQ/Manual code...) -
all the URL's are hard-coded into the pages - in desired format to
operate/use the FAQ..

However this 1 particular section, is different, & requires (or is
desired)  a form - So the user can enter details, & information
displayed accordingly...

> From your example, it looks like option5 is hard coded but NAME1 and NAME2 are

"option5" is just an example - But it basically tells my script to
activate this sub-script - Rather than the main FAQ script...


I guess I'll go with the regular ?value1=value&value2= etc...  & put a
tiny code near the top of the script & test the values - If it matches
the required value - I use the "header" command to format the URL &
redirect the browser..

(basically we're shortening the URL - & its easier to read than
?value1=value&value2= etc...  )

Ps - My form will send a 3rd value - To tell the script its come from
the form, & the URL needs to be re-formatted...

Thanks...

-- 
G
NZ community groups - [EMAIL PROTECTED]
Freecycle Auckland :-
http://groups.yahoo.com/group/AucklandFreecycle/

Reply via email to