This is Tony Marston's web site, containing personal information plus pages devoted to the Uniface 4GL development language, XML and XSL, PHP and MySQL, and a bit of COBOL
"NotGiven" <noname@nonegiv en.net> wrote in message
news:jh1Uc.611$ yB.196@bignews1 .bellsouth.net. ..[color=blue]
>I changed my POST to GET and find appended to the url, the above string.
> Why and what can I do to NOT have them appended?
>
> Thanks.
>
>[/color]
Re: why does get append to url, "&Subm it.x=42&Sub mit.y=10" or "submit=su bmit"
*** NotGiven wrote/escribió (Mon, 16 Aug 2004 07:59:17 -0400):[color=blue]
> I changed my POST to GET and find appended to the url, the above string.
> Why and what can I do to NOT have them appended?[/color]
It's added by browser when you submit on an <input type="image"> element, I
believe there's nothing you can do except changing the way the form is
submitted.
--
-- Álvaro G. Vicario - Burgos, Spain
-- Questions sent to my mailbox will be billed ;-)
--
Re: why does get append to url, "&Subm it.x=42&Sub mit.y=10" or "submit=su bmit"
"NotGiven" <noname@nonegiv en.net> wrote in message
news:jh1Uc.611$ yB.196@bignews1 .bellsouth.net. ..[color=blue]
> I changed my POST to GET and find appended to the url, the above string.
> Why and what can I do to NOT have them appended?
>
> Thanks.
>
>[/color]
If the URL appends "submit=sub mit" that means you have a named submit
button. If you take away the name="submit" part out of <input type="submit"
name="submit" value="submit"> , "submit=sub mit" will not show up in the URL.
However if you're using <input type="image" ...>, the browser automatically
adds two parameters when the form is submitted. Those two are
[submit_button_n ame].x and [submit_button_n ame].y. These parameters show the
(x,y) location of the user's mouse cursor when s/he clicked the submit
button image. Again, I'm pretty sure you can take away the name="submit"
attribute of the <input type="image"> tag and eliminate the problem.
Re: why does get append to url, "&Subm it.x=42&Sub mit.y=10" or "submit=su bmit"
"NotGiven" <noname@nonegiv en.net> wrote in message
news:jh1Uc.611$ yB.196@bignews1 .bellsouth.net. ..[color=blue]
> I changed my POST to GET and find appended to the url, the above string.
> Why and what can I do to NOT have them appended?
>
> Thanks.
>
>[/color]
If the URL appends "submit=sub mit" that means you have a named submit
button. If you take away the name="submit" part out of <input type="submit"
name="submit" value="submit"> , "submit=sub mit" will not show up in the URL.
However if you're using <input type="image" ...>, the browser automatically
adds two parameters when the form is submitted. Those two are
[submit_button_n ame].x and [submit_button_n ame].y. These parameters show the
(x,y) location of the user's mouse cursor when s/he clicked the submit
button image. Again, I'm pretty sure you can take away the name="submit"
attribute of the <input type="image"> tag and eliminate the problem.
Re: why does get append to url, "&Subm it.x=42&Sub mit.y=10" or "submit=su bmit"
not a problem - just cumbersome to read
"Michael Fesser" <netizen@gmx.ne t> wrote in message
news:s0s1i0h81v rhsjtepa7v22boj m2eugbkdl@4ax.c om...[color=blue]
> .oO(NotGiven)
>[color=green]
> >I changed my POST to GET and find appended to the url, the above string.
> >Why[/color]
>
> A browser adds all successful form controls to the URL when submitting
> the form. This may include the submit-button that was used for
> submission.
>
> 17.13.2 Successful controls
> http://www.w3.org/TR/html4/interact/...html#h-17.13.2
>[color=green]
> >and what can I do to NOT have them appended?[/color]
>
> Is it a problem?
>
> Micha[/color]
Comment