[PHP] Re: REQUEST QUESTION
Dear Mark, Thanx for your reply. The solution you mentioned I knew it allready but i cannot change the name of order to order[] or something else but i still want to know is there any other way i can solve this issue. I got so many anwer saying that it is not possible I wonder why because PHP is supporting so many feature why not this. In Java and Cgi-Perl it is very simple why not in PHP that's my question. In java i use : (works for both GET and POST) public Enumeration ServletRequest.getParameterNames() - for getting all the names public String[] ServletRequest.getParameterValues(String) - for getting all values for the given name ( this is the one which accomplishes my job, gets both order's values) I am very sure that there must be some solution to this but I don't know how to do this in PHP. I have one solution using GET method but not with POST. Looking forward for solution to this issue. Regards, karthikeyan. - Original Message - From: Mark and Suzette [EMAIL PROTECTED] To: Karthikeyan [EMAIL PROTECTED] Sent: Thursday, March 07, 2002 6:16 AM Subject: Re: REQUEST QUESTION What you want to do is change the hidden fields names to order[] = 10 and order[]=20. This way you are generating an HTML array. PHP can then handle both values being assigned ($order[0], $order[1]). If you don't create an array, value 20 will cancel out value 10 (well should anyway). - Original Message - From: Karthikeyan [EMAIL PROTECTED] Newsgroups: php.general To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 10:21 AM Subject: REQUEST QUESTION Hi Guys, I allready posted this question in detail but I believe I didn't explain it properly. There are 2 hidden variable in my FORM. 1. order = 10 and 2. order=20 I want to retrieve both the orders in the next page say somename.php. How do i do that. Regards, karthikeyan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: REQUEST QUESTION
-Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED]] Sent: 07 March 2002 17:52 [] I am very sure that there must be some solution to this but I don't know how to do this in PHP. I have one solution using GET method but not with POST. Then you're very surely wrong, because it's not currently possible with PHP. This is a known limitation. The solution is to lobby the PHP team to include it in a future version. There are at least two bug reports (#10502 and #13718) requesting this feature change that you could add a comment to or vote in favour of. Cheers! Mike - Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning Information Services, JG125, James Graham Building, Leeds Metropolitan University, Beckett Park, LEEDS, LS6 3QS, United Kingdom Email: [EMAIL PROTECTED] Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: REQUEST QUESTION
In article 006401c1c600$ba52c210$0600a8c0@aspire006, [EMAIL PROTECTED] says... Dear Mark, Thanx for your reply. The solution you mentioned I knew it allready but i cannot change the name of order to order[] or something else but i still want to know is there any other way i can solve this issue. I got so many anwer saying that it is not possible I wonder why because PHP is supporting so many feature why not this. In Java and Cgi-Perl it is very simple why not in PHP that's my question. In java i use : (works for both GET and POST) public Enumeration ServletRequest.getParameterNames() - for getting all the names public String[] ServletRequest.getParameterValues(String) - for getting all values for the given name ( this is the one which accomplishes my job, gets both order's values) I am very sure that there must be some solution to this but I don't know how to do this in PHP. I have one solution using GET method but not with POST. Looking forward for solution to this issue. Regards, karthikeyan. Have you looked at $HTTP_POST_VARS (or $_POST, depending on version) or $QUERY_STRING? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: REQUEST QUESTION
Hi, I use PHP 4.0.6, I am not sure about $_POST but $HTTP_POST_VARS removes duplicate entries. As far as $QUERY_STRING is concerned well I knew it could do it but I want to use POST method. Not that happy knowing that PHP doesn't support this feature when Java and CGI-Perl can. Regards, karthikeyan. - Original Message - From: David Robley [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 08, 2002 6:21 AM Subject: [PHP] Re: REQUEST QUESTION In article 006401c1c600$ba52c210$0600a8c0@aspire006, [EMAIL PROTECTED] says... Dear Mark, Thanx for your reply. The solution you mentioned I knew it allready but i cannot change the name of order to order[] or something else but i still want to know is there any other way i can solve this issue. I got so many anwer saying that it is not possible I wonder why because PHP is supporting so many feature why not this. In Java and Cgi-Perl it is very simple why not in PHP that's my question. In java i use : (works for both GET and POST) public Enumeration ServletRequest.getParameterNames() - for getting all the names public String[] ServletRequest.getParameterValues(String) - for getting all values for the given name ( this is the one which accomplishes my job, gets both order's values) I am very sure that there must be some solution to this but I don't know how to do this in PHP. I have one solution using GET method but not with POST. Looking forward for solution to this issue. Regards, karthikeyan. Have you looked at $HTTP_POST_VARS (or $_POST, depending on version) or $QUERY_STRING? -- David Robley Temporary Kiwi! Quod subigo farinam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: REQUEST QUESTION
Karthikeyan [EMAIL PROTECTED] skrev i melding 002601c1c461$cfa08580$0600a8c0@aspire006..">news:002601c1c461$cfa08580$0600a8c0@aspire006..; Hi Guys, I allready posted this question in detail but I believe I didn't explain it properly. There are 2 hidden variable in my FORM. 1. order = 10 and 2. order=20 I want to retrieve both the orders in the next page say somename.php. How do i do that. Regards, karthikeyan. You must put the in a array like this input type=hidden name=order [1] value=10 input type=hidden name=order [2] value=20 On the nest page you just do echo The first order is .order[1]. and the second order is .order[2]; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: REQUEST QUESTION
Hi Thanx, --- input type=hidden name=order [1] value=10 input type=hidden name=order [2] value=20 On the nest page you just do echo The first order is .order[1]. and the second order is .order[2]; -- But that is what I cannot do. I cannot change the name of the order to order[1] because that form is not in my control. I want both the order with its values. Any other suggestions please. Regards, karthikeyan. - Original Message - From: David Tandberg-Johansen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, March 05, 2002 10:09 PM Subject: [PHP] Re: REQUEST QUESTION Karthikeyan [EMAIL PROTECTED] skrev i melding 002601c1c461$cfa08580$0600a8c0@aspire006">news:002601c1c461$cfa08580$0600a8c0@aspire006... Hi Guys, I allready posted this question in detail but I believe I didn't explain it properly. There are 2 hidden variable in my FORM. 1. order = 10 and 2. order=20 I want to retrieve both the orders in the next page say somename.php. How do i do that. Regards, karthikeyan. You must put the in a array like this input type=hidden name=order [1] value=10 input type=hidden name=order [2] value=20 On the nest page you just do echo The first order is .order[1]. and the second order is .order[2]; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: REQUEST QUESTION
On Wednesday 06 March 2002 03:42, karthikeyan wrote: Hi All, I have worked in Java and Cgi and there I was able to do this very easily. Infact i have one solution to this using GET method in PHP but I want this using POST. As you have said, using POST overwrites duplicate variables. This is probably a fundamental behaviour of using HTTP POST and thus NOT a php problem. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* Love is the process of my leading you gently back to yourself. -- Saint Exupery */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php