Re: [PHP] w3c-compliant form-action parameters [solved]
Hi Timo, Nachricht vom Freitag, 24. Oktober 2003, 17:58:39: > I am trying to get my pages through the w3c-validator for html. > It doesn't like my > > Changing & to & got my page through the validator, but broke > my app, which seems not to be getting any parameters over URL > anymore. How can I fix that? I found that & works in http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Chris, Nachricht vom Samstag, 25. Oktober 2003, 19:06:10: > --- Timo Boettcher <[EMAIL PROTECTED]> wrote: >> > http://shiflett.org/dev/php-general/ampersand.php >> >> can you put the source of that online, too? > You can view the source in your browser to see the HTML, which is > the relevant part. I know that, but I wanted to see if you PHP-source gets the same results on my server (testing if my server is misconfigured) > If you see the HTML entity for an ampersand in your browser's > location bar after submitting the form, then your browser has a bug. > If you only see a plain ampersand, your browser is fine, and your > code has a bug. I guess its the latter... *g* >> I get the same result as you do. >> BUT: that page doesn't validate *g* > Look again. Mine is not a full page, obviously, in order to focus > your attention to the relevant markup. Having the php-source of that part would make it easier to build a full page out of it, to put it through the W3C Validator. > What is there is XHTML-compliant. > I'm not sure what "validate" means to you, but your earlier > complaint about an ampersand not validating leads me to believe you > were validating against XHTML transitional or strict. > You can let us know which, if you want, but it is irrelevant to your > immediate problem. That was in the post you ansered with this one. I am trying to get > I am trying to not let you distract yourself; this is what makes > solving problems more difficult for many people. I am trying to get that page to work AND validate as in the W3C HTML Validator. I was able to get both, but not at the same time, so that is one problem, and splitting it in two doesn't help me to solve it. > Chris Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
--- Timo Boettcher <[EMAIL PROTECTED]> wrote: > > http://shiflett.org/dev/php-general/ampersand.php > > can you put the source of that online, too? You can view the source in your browser to see the HTML, which is the relevant part. If you see the HTML entity for an ampersand in your browser's location bar after submitting the form, then your browser has a bug. If you only see a plain ampersand, your browser is fine, and your code has a bug. > I get the same result as you do. > BUT: that page doesn't validate *g* Look again. Mine is not a full page, obviously, in order to focus your attention to the relevant markup. What is there is XHTML-compliant. I'm not sure what "validate" means to you, but your earlier complaint about an ampersand not validating leads me to believe you were validating against XHTML transitional or strict. You can let us know which, if you want, but it is irrelevant to your immediate problem. I am trying to not let you distract yourself; this is what makes solving problems more difficult for many people. > The HTML entity for an ampersand is: & Use that instead of the ampersand in your above example. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Chris, Nachricht vom Samstag, 25. Oktober 2003, 18:28:27: > --- Timo Boettcher <[EMAIL PROTECTED]> wrote: >> > I find that *very* hard to believe. I'm not aware of any browser >> > that mishandles HTML entities. Basically, when you say this: >> > >> > action="/mypage.php?para1=val1¶2=val2" >> > >> > Your browser's HTTP request line will appear as: >> > >> > /mypage.php?para1=val1¶2=val2 >> >> That seems to be different here. With IE and opera, I get >> "mypage.php?para1=val1¶2=val2" as the page address. > I'm curious now. Try this page: > http://shiflett.org/dev/php-general/ampersand.php can you put the source of that online, too? > View source and make sure this matches your situation. When I click > the submit button, the next page looks like this for me: [...] > Also, the URL I go to is: > http://shiflett.org/dev/php-general/ampersand.php?foo=1&bar=2 > Note that the HTML entity was decoded by my browser. What are your > results? I get the same result as you do. BUT: that page doesn't validate *g* I guess I have got a problem with my encoding or something... I have: Title . . . > Chris Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Timo Boettcher wrote: It will not work. One of the requirements of my app is that I can place a bookmark on any page and return to it. That wouldn't work with hidden fields, would it? BTW, I am using http-post. It will work. Change your form method from post to get, and drop your variables from the url string down to hidden form variables. When you submit the form, all the variables will be in the url query string. ... -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
--- Timo Boettcher <[EMAIL PROTECTED]> wrote: > It will not work. One of the requirements of my app is that I can > place a bookmark on any page and return to it. That wouldn't work > with hidden fields, would it? It would if you use the GET method as someone had suggested. Basically, this is how Google works. When you perform a search, the method that the form uses is GET, so you can bookmark search results, email the URL to a friend, or whatever. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Timo Boettcher wrote: Marek's right, and this is the case for every browser I know of. In this case, you can specify para1 and para2 as hidden form variables, and it will work. It will not work. One of the requirements of my app is that I can place a bookmark on any page and return to it. That wouldn't work with hidden fields, would it? Yes, it would. ... would result in script.php?par=val BTW, I am using http-post. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Chris, Nachricht vom Samstag, 25. Oktober 2003, 18:13:10: > --- Marek Kilimajer <[EMAIL PROTECTED]> wrote: >> > >> >> Get variables in action URL don't work with get method, at least in >> Mozilla. > Marek's right, and this is the case for every browser I know of. > In this case, you can specify para1 and para2 as hidden form > variables, and it will work. It will not work. One of the requirements of my app is that I can place a bookmark on any page and return to it. That wouldn't work with hidden fields, would it? BTW, I am using http-post. > Hope that helps. > Chris Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
--- Timo Boettcher <[EMAIL PROTECTED]> wrote: > > I find that *very* hard to believe. I'm not aware of any browser > > that mishandles HTML entities. Basically, when you say this: > > > > action="/mypage.php?para1=val1¶2=val2" > > > > Your browser's HTTP request line will appear as: > > > > /mypage.php?para1=val1¶2=val2 > > That seems to be different here. With IE and opera, I get > "mypage.php?para1=val1¶2=val2" as the page address. I'm curious now. Try this page: http://shiflett.org/dev/php-general/ampersand.php View source and make sure this matches your situation. When I click the submit button, the next page looks like this for me: GET Array ( [foo] => 1 [bar] => 2 ) POST Array ( [blah] => 3 ) Also, the URL I go to is: http://shiflett.org/dev/php-general/ampersand.php?foo=1&bar=2 Note that the HTML entity was decoded by my browser. What are your results? Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote: > > > > Get variables in action URL don't work with get method, at least in > Mozilla. Marek's right, and this is the case for every browser I know of. In this case, you can specify para1 and para2 as hidden form variables, and it will work. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Marek, Nachricht vom Samstag, 25. Oktober 2003, 16:42:49: > Hi, I'm not sure if this was asked, but what browser are you using? Opera 7.21 IE 6.0.2800.1106 > I get everything correctly and I don't remember any browser with > this kind of bug. Also, can you post the relevant part of page source? As the page is fairly complex (and that effect is experienced over three pages, that submit to each other or send header("Location:...") to another, I'll try to build an example-page to show that effect more easily... > Timo Boettcher wrote: >> Yes. When I use >> >> everything works ok, the form is submitted to the given address. >> When I do >> >> the form is submitted to the given address, too, and that includes the >> & so that my application gets broken parameters and breaks. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi, I'm not sure if this was asked, but what browser are you using? I get everything correctly and I don't remember any browser with this kind of bug. Also, can you post the relevant part of page source? Timo Boettcher wrote: Yes. When I use everything works ok, the form is submitted to the given address. When I do the form is submitted to the given address, too, and that includes the & so that my application gets broken parameters and breaks. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Chris, Nachricht vom Freitag, 24. Oktober 2003, 21:12:06: > --- Timo Boettcher <[EMAIL PROTECTED]> wrote: >> I am trying to get my pages through the w3c-validator for html. >> It doesn't like my >> >> Changing & to & got my page through the validator, but broke my >> app, which seems not to be getting any parameters over URL >> anymore. > I find that *very* hard to believe. I'm not aware of any browser > that mishandles HTML entities. Basically, when you say this: > action="/mypage.php?para1=val1¶2=val2" > Your browser's HTTP request line will appear as: > /mypage.php?para1=val1¶2=val2 That seems to be different here. With IE and opera, I get "mypage.php?para1=val1¶2=val2" as the page address. > So, by the time PHP sees it, everything is the same either way. My guess is > that you have some other problem. > Hope that helps. > Chris Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Marek, Nachricht vom Freitag, 24. Oktober 2003, 19:17:36: > Whoops. The first sentense should be a question. > Marek Kilimajer wrote: >> It breaks your server side scripts. & should be translated to & by >> the browser and never get to php. >> >> Timo Boettcher wrote: >> >>> Hi, >>> >>> I am trying to get my pages through the w3c-validator for html. >>> It doesn't like my >>> >>> Changing & to & got my page through the validator, but broke my >>> app, which seems not to be getting any parameters over URL anymore. >>> How can I fix that? >>> >>> PS.: Moving that information from the URL to hidden fields or >>> cookies/sessions is not an option. >>> >>> Timo Yes. When I use everything works ok, the form is submitted to the given address. When I do the form is submitted to the given address, too, and that includes the & so that my application gets broken parameters and breaks. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Marek Kilimajer wrote: John Nichel wrote: Sure it is. Change the method of the form from a 'post' to a 'get' Get variables in action URL don't work with get method, at least in Mozilla. Right, my bad. He'd have to move them into hidden fields to be in the URL query string ... -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Can you upload the problematic page somewhere. I don't believe & entity is the real problem. Timo Boettcher wrote: Hi Marek, Nachricht vom Samstag, 25. Oktober 2003, 13:02:06: Timo Boettcher wrote: Its not easy to get the value of a hidden field in a bookmark. Don't use & in bookmarks, use just &. But when I say "Bookmark this Page" (in any browser) that gets me a bookmark on the url, and not on hidden fields. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
John Nichel wrote: Sure it is. Change the method of the form from a 'post' to a 'get' Get variables in action URL don't work with get method, at least in Mozilla. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Timo Boettcher wrote: Hi John, Nachricht vom Freitag, 24. Oktober 2003, 19:06:33: Timo Boettcher wrote: Hi, I am trying to get my pages through the w3c-validator for html. It doesn't like my Changing & to & got my page through the validator, but broke my app, which seems not to be getting any parameters over URL anymore. How can I fix that? PS.: Moving that information from the URL to hidden fields or cookies/sessions is not an option. Timo I'm curiouswhy are hidden fields not an option? Its not easy to get the value of a hidden field in a bookmark. Timo Sure it is. Change the method of the form from a 'post' to a 'get' Of course, all of your variables will be in the URL then. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Marek, Nachricht vom Samstag, 25. Oktober 2003, 13:02:06: > Timo Boettcher wrote: >> Its not easy to get the value of a hidden field in a bookmark. > Don't use & in bookmarks, use just &. But when I say "Bookmark this Page" (in any browser) that gets me a bookmark on the url, and not on hidden fields. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Timo Boettcher wrote: Its not easy to get the value of a hidden field in a bookmark. Timo Don't use & in bookmarks, use just &. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi Pablo, Nachricht vom Freitag, 24. Oktober 2003, 19:14:31: > Hi, Timo. Why can't use use hidden fields instead of appending the > values to the url? It would be the same to access them via > $_GET['para1'] $_GET['para2] (unless you were using post as your method, > in which case it would simply be $_POST['varname']) if they were on the > url or in hidden fields. > Why can't you make this switch? You can't set a bookmark to include the value of a hidden field, but with a url-param, it is possible. > Also, have you tried using the % entity for ampersand (%26 if memory > serves me correct) instead of & or the literal ampersand? > So instead of mypage.php?para1=val1¶2=val2 you would use > mypage.php?para1=val1%26para2=val2. I'll try that. > Cheers, > Pablo > -Original Message- > From: Timo Boettcher [mailto:[EMAIL PROTECTED] > Sent: Friday, October 24, 2003 9:59 AM > To: [EMAIL PROTECTED] > Subject: [PHP] w3c-compliant form-action parameters > Hi, > I am trying to get my pages through the w3c-validator for html. > It doesn't like my > > Changing & to & got my page through the validator, but broke my > app, which seems not to be getting any parameters over URL anymore. > How can I fix that? > PS.: Moving that information from the URL to hidden fields or > cookies/sessions is not an option. > Timo Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Hi John, Nachricht vom Freitag, 24. Oktober 2003, 19:06:33: > Timo Boettcher wrote: >> Hi, >> >> I am trying to get my pages through the w3c-validator for html. >> It doesn't like my >> >> Changing & to & got my page through the validator, but broke my >> app, which seems not to be getting any parameters over URL anymore. >> How can I fix that? >> >> PS.: Moving that information from the URL to hidden fields or >> cookies/sessions is not an option. >> >> Timo >> > I'm curiouswhy are hidden fields not an option? Its not easy to get the value of a hidden field in a bookmark. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
--- Matt Babineau <[EMAIL PROTECTED]> wrote: > All this aside what about using the ASCII value of the & symbol. > (I think its ASCII). > > You know how sometimes links with spaces in them are %20 instead > of the actual space? I'm not sure what it is but I am pretty sure > there is a %something for and ampersand symbol. I think you're thinking of URL encoding, which won't work. Actually, URL encoding is specifically used so that this won't work. It allows you to encode data in such a way that it can't possibly interfere with the structure of a URL. An ampersand is the proper separation character; the HTML entity is only needed within HTML to satisfy certain standards. When it comes to the URLs used in the HTTP transactions, the HTML entity will not be seen (unless the browser has made a serious error). Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
All this aside what about using the ASCII value of the & symbol. (I think its ASCII). You know how sometimes links with spaces in them are %20 instead of the actual space? I'm not sure what it is but I am pretty sure there is a %something for and ampersand symbol. That may workif its not already been suggested. -Matt On Fri, 2003-10-24 at 17:03, Chris Shiflett wrote: > --- Nathan Taylor <[EMAIL PROTECTED]> wrote: > > This problem should be handled by modifying the php.ini. In my > > experience W3C is a whiney bitch that always gets it's way. Just > > throw this code on all your pages (or better yet, in a header) and > > the problem will go away. > > > > // The communists at W3C don't like the ampersand, so let's make > > sure it isn't used. > > ini_set('arg_separator.output', '&'); > > I'm sorry, but that's about the most foolish post I've seen on this list, and > I've been around a long time. If you're going to ridicule a standards body like > the W3C, you should at least have some sort of valid reason, and even then a > little tact doesn't hurt. In addition, trying to throw in prejudice and > politics just makes things worse. > > The arg_separator.output directive won't fix his problem. That just makes it so > that you can override PHP's default separator of & when it builds a URL for > whatever reason (trasparent session ID propogation, for example). His question > was regarding the fact that he had changed his own code to use & instead of > &. And, of course there is the fact that an HTTP header can't be used to set > php.ini directives, so that recommendation does no good. > > Chris > > = > My Blog > http://shiflett.org/ > HTTP Developer's Handbook > http://httphandbook.org/ > RAMP Training Courses > http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
--- Nathan Taylor <[EMAIL PROTECTED]> wrote: > This problem should be handled by modifying the php.ini. In my > experience W3C is a whiney bitch that always gets it's way. Just > throw this code on all your pages (or better yet, in a header) and > the problem will go away. > > // The communists at W3C don't like the ampersand, so let's make > sure it isn't used. > ini_set('arg_separator.output', '&'); I'm sorry, but that's about the most foolish post I've seen on this list, and I've been around a long time. If you're going to ridicule a standards body like the W3C, you should at least have some sort of valid reason, and even then a little tact doesn't hurt. In addition, trying to throw in prejudice and politics just makes things worse. The arg_separator.output directive won't fix his problem. That just makes it so that you can override PHP's default separator of & when it builds a URL for whatever reason (trasparent session ID propogation, for example). His question was regarding the fact that he had changed his own code to use & instead of &. And, of course there is the fact that an HTTP header can't be used to set php.ini directives, so that recommendation does no good. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
This problem should be handled by modifying the php.ini. In my experience W3C is a whiney bitch that always gets it's way. Just throw this code on all your pages (or better yet, in a header) and the problem will go away. // The communists at W3C don't like the ampersand, so let's make sure it isn't used. ini_set('arg_separator.output', '&'); Cheers, Nathan Taylor - Original Message - From: Burhan Khalid To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] Sent: Friday, October 24, 2003 3:43 PM Subject: Re: [PHP] w3c-compliant form-action parameters Chris Shiflett wrote: > --- Timo Boettcher <[EMAIL PROTECTED]> wrote: > >>I am trying to get my pages through the w3c-validator for html. >>It doesn't like my >> >>Changing & to & got my page through the validator, but broke >>my app, which seems not to be getting any parameters over URL >>anymore. > > > I find that *very* hard to believe. I'm not aware of any browser that > mishandles HTML entities. Basically, when you say this: > > action="/mypage.php?para1=val1¶2=val2" > > Your browser's HTTP request line will appear as: > > /mypage.php?para1=val1¶2=val2 > > So, by the time PHP sees it, everything is the same either way. My guess is > that you have some other problem. I agree with Chris. This is not a browser problem. However, there is a php.ini setting that will allow you to set the separator for get requests, but I suggest you investigate this problem further. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Chris Shiflett wrote: --- Timo Boettcher <[EMAIL PROTECTED]> wrote: I am trying to get my pages through the w3c-validator for html. It doesn't like my Changing & to & got my page through the validator, but broke my app, which seems not to be getting any parameters over URL anymore. I find that *very* hard to believe. I'm not aware of any browser that mishandles HTML entities. Basically, when you say this: action="/mypage.php?para1=val1¶2=val2" Your browser's HTTP request line will appear as: /mypage.php?para1=val1¶2=val2 So, by the time PHP sees it, everything is the same either way. My guess is that you have some other problem. I agree with Chris. This is not a browser problem. However, there is a php.ini setting that will allow you to set the separator for get requests, but I suggest you investigate this problem further. -- Burhan Khalid phplist[at]meidomus[dot]com http://www.meidomus.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
--- Timo Boettcher <[EMAIL PROTECTED]> wrote: > I am trying to get my pages through the w3c-validator for html. > It doesn't like my > > Changing & to & got my page through the validator, but broke > my app, which seems not to be getting any parameters over URL > anymore. I find that *very* hard to believe. I'm not aware of any browser that mishandles HTML entities. Basically, when you say this: action="/mypage.php?para1=val1¶2=val2" Your browser's HTTP request line will appear as: /mypage.php?para1=val1¶2=val2 So, by the time PHP sees it, everything is the same either way. My guess is that you have some other problem. Hope that helps. Chris = My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Whoops. The first sentense should be a question. Marek Kilimajer wrote: It breaks your server side scripts. & should be translated to & by the browser and never get to php. Timo Boettcher wrote: Hi, I am trying to get my pages through the w3c-validator for html. It doesn't like my Changing & to & got my page through the validator, but broke my app, which seems not to be getting any parameters over URL anymore. How can I fix that? PS.: Moving that information from the URL to hidden fields or cookies/sessions is not an option. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] w3c-compliant form-action parameters
Hi, Timo. Why can't use use hidden fields instead of appending the values to the url? It would be the same to access them via $_GET['para1'] $_GET['para2] (unless you were using post as your method, in which case it would simply be $_POST['varname']) if they were on the url or in hidden fields. Why can't you make this switch? Also, have you tried using the % entity for ampersand (%26 if memory serves me correct) instead of & or the literal ampersand? So instead of mypage.php?para1=val1¶2=val2 you would use mypage.php?para1=val1%26para2=val2. Cheers, Pablo -Original Message- From: Timo Boettcher [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 9:59 AM To: [EMAIL PROTECTED] Subject: [PHP] w3c-compliant form-action parameters Hi, I am trying to get my pages through the w3c-validator for html. It doesn't like my Changing & to & got my page through the validator, but broke my app, which seems not to be getting any parameters over URL anymore. How can I fix that? PS.: Moving that information from the URL to hidden fields or cookies/sessions is not an option. Timo -- 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] w3c-compliant form-action parameters
It breaks your server side scripts. & should be translated to & by the browser and never get to php. Timo Boettcher wrote: Hi, I am trying to get my pages through the w3c-validator for html. It doesn't like my Changing & to & got my page through the validator, but broke my app, which seems not to be getting any parameters over URL anymore. How can I fix that? PS.: Moving that information from the URL to hidden fields or cookies/sessions is not an option. Timo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] w3c-compliant form-action parameters
Timo Boettcher wrote: Hi, I am trying to get my pages through the w3c-validator for html. It doesn't like my Changing & to & got my page through the validator, but broke my app, which seems not to be getting any parameters over URL anymore. How can I fix that? PS.: Moving that information from the URL to hidden fields or cookies/sessions is not an option. Timo I'm curiouswhy are hidden fields not an option? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php