Friday, July 25, 2014
   
Text Size
Login

How to make a HTML form post its variables to itself

The Issue

You have a PHP page which generates a HTML form.  When the user submits the form, you want the same PHP page to process the data.

Solution

I've seen a lot of people write CGI requests but if you left the action attribute blank, this would do the same thing:

 


  1.  <form method="post" action=""> 
  2.  ... 

 

Latest Posts

  • Joes Quicklist Weblinks (JQW)

    • Thu 17-Jul-14
      Hi, thanks a lot. But I have got a problem with download it. Error: "File could not be found Important!
      Kat  
    • Tue 15-Jul-14
      Hi Artur, I forgot to get back to you sooner. I was going to include a set of instructions to do this ...
      Webmaster  
    • Mon 14-Jul-14
      Hi Skarosg, Not sure if we took this to e-mail but I noticed your site is displaying the images now.
      Webmaster  
    • Fri 11-Jul-14
      Hi, How can I put user name and category of weblink in module, near the date? Thanks..
      Artur
  • Joes Word Cloud (JWC)

    • Tue 17-Jun-14
      I'm using JE 3.1.19 stable.
      alve89