Re: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread Stuart
2009/3/17 Joao Gomes Madeira : > Hello Bill > > I mixed up names and ended up answering the wrong message. Sorry. > > Actually it is quite easy... > > In viewallorders.php you should replace: > > echo ""; > > with > > echo ''; > > and then, in showorder.php > > parse_str($_SERVER['QUERY_STRING'],

Re: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread Joao Gomes Madeira
Hello Bill I mixed up names and ended up answering the wrong message. Sorry. Actually it is quite easy... In viewallorders.php you should replace: echo ""; with echo ''; and then, in showorder.php To: php-windows@lists.php.net Subject: [PHP-WIN] Can't seem to transfer a dynamically chosen

Re: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread Stuart
2009/3/17 Bill Mudry > > I hope someone has an answer to what has been a thorny problem for me. I am > still junior to using PHP. > I have a script that displays a bunch of woody botanical orders out of a > MySQL file nicely in columns. > That part works fine. > > Next what is wanted is for a us

RE: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread Joao Gomes Madeira
Hello Why would you want to do that with a query string? All form data is passed on the variables $_POST or $_GET and that is supposed to function like that. A query string has a totally different purpose under html... Cheers JP -Original Message- From: Zephaniah ha Levi To: 'Bill Mud

RE: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread James Crow
If you create a dynamic page with elements changing based on AJAX DB queries and such you must be able to change the page from within the local browser. That requires JS. I think that may be a little advanced for what the OP was trying to accomplish, but I only mentioned it because it can make for

Re: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread Lex Braun
Bill, 2009/3/17 Bill Mudry > I hope someone has an answer to what has been a thorny problem for me. I am > still junior to using PHP. > I have a script that displays a bunch of woody botanical orders out of a > MySQL file nicely in columns. > That part works fine. > > Next what is wanted is for

RE: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread Zephaniah ha Levi
Why would you need JS to set the url for the link. Why could it not all be done via php? Z -Original Message- From: James Crow [mailto:ja...@ultratans.com] Sent: Tuesday, March 17, 2009 11:59 AM To: Bill Mudry Cc: php-windows@lists.php.net Subject: Re: [PHP-WIN] Can't seem to transfer

Re: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread James Crow
I haven't looked at your code, but it sounds like you need JavaScript. On the page you are going to you will need to pass something. You can pass values either through forms or through the URL. URL may be easiest. If you have a link like http://somehost.com/page_two.php?variable=value you can get

RE: [PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread Zephaniah ha Levi
Why can you not pass the parameter in the url link of the new page using the get variable? Example Name: Age: When the user clicks the "Submit" button, the URL sent could look something like this: http://www.w3schools.com/welcome.php?name=Peter&age=37 The "welcome.php" file can now use t

[PHP-WIN] Can't seem to transfer a dynamically chosen parameter to next page

2009-03-17 Thread Bill Mudry
I hope someone has an answer to what has been a thorny problem for me. I am still junior to using PHP. I have a script that displays a bunch of woody botanical orders out of a MySQL file nicely in columns. That part works fine. Next what is wanted is for a user to be able to click on one of the