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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 18 Feb 2005 16:00:21 -0500, Henry Hartley
<henryhartley@xxxxxxxxxx> 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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux