Silly HTML question: passing variables to the same page via POST

Deron Meranda deron.meranda at gmail.com
Fri Feb 18 21:14:23 UTC 2005


On Fri, 18 Feb 2005 16:00:21 -0500, Henry Hartley
<henryhartley at westat.com> wrote:
> On Fri, 18 Feb 2005 at 3:45 PM, Rodolfo J. Paiz wrote:
> >>
> >> When the user clicks on one of those links/buttons, the same page
> (with
> >> the same URL) should be reloaded, again with the list of detail
> sections
> >> shown in the left blue column, but now with the selected detailed
> table
> >> shown in the middle brown column. The URL should stay the same.

If you don't want the URL to change, you need to use the post
method rather than a get.  Also since you want to use the same
PHP script, your action URL should also be the same.  You can
just use "#" as a shortcut.

Thus your <form> element's opening tag at a minimum should
look something like,

  <form
     action="#"
     method="post"
     enctype="multipart/form-data">

-- 
Deron Meranda




More information about the fedora-list mailing list