Tuesday, October 21, 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

  • Convert to Proper Case in T-SQL

    • Tue 07-Oct-14
      Really comprehensive function. Nice work! Dave.
      starsky51
  • Joes Quicklist Weblinks (JQW)

    • Wed 08-Oct-14
      Thanks jazzmang! This module is due for an update so I'll review this issue in the next version.
      Webmaster  
    • Tue 07-Oct-14
      I've set "Display Images" under Module Settings but the modules continues to display a hard coded CSS ...
      jazzmang
  • Joes Word Cloud (JWC)

    • Thu 16-Oct-14
      hello i use your tag cloud component in my joomla 2.5 website. i'm french and there is probleme with ...
      plykite2010  
    • Tue 07-Oct-14
      Hello, i have Joomla 2.5.27 and Module JWC v3.2.2 installed. In Configuration i fill in how many Word ...
      Maic