<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ideawaza.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=155.232.0.0%2F16</id>
	<title>IdeaWazaWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://ideawaza.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=155.232.0.0%2F16"/>
	<link rel="alternate" type="text/html" href="https://ideawaza.com/wiki/Special:Contributions/155.232.0.0/16"/>
	<updated>2026-09-30T08:37:11Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Database_Connectivity&amp;diff=42658</id>
		<title>Archive:PHP and MySQL Programming/Database Connectivity</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Database_Connectivity&amp;diff=42658"/>
		<updated>2006-03-18T07:39:29Z</updated>

		<summary type="html">&lt;p&gt;155.232.250.19: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Programming:PHP and MySQL|TOC]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Opening a Connection to a MySQL Database ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating a Query ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Retrieving data from a SELECT Query ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Closing a Database Connection ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Programming:PHP and MySQL:File Handling|&amp;lt;&amp;lt; 3. File Handling]] | [[Programming:PHP and MySQL|TOC]] | [[Programming:PHP and MySQL:Session Handling|&amp;gt;&amp;gt; 6. Session Handling]]&lt;/div&gt;</summary>
		<author><name>155.232.250.19</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Database_Connectivity&amp;diff=42657</id>
		<title>Archive:PHP and MySQL Programming/Database Connectivity</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Database_Connectivity&amp;diff=42657"/>
		<updated>2006-03-18T07:36:57Z</updated>

		<summary type="html">&lt;p&gt;155.232.250.19: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Programming:PHP and MySQL|TOC]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Opening a Connection to a MySQL Database ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creating a Query ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Retrieving data from a SELECT Query ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Closing a Database Connection ==&lt;/div&gt;</summary>
		<author><name>155.232.250.19</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Database_Connectivity&amp;diff=42656</id>
		<title>Archive:PHP and MySQL Programming/Database Connectivity</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Database_Connectivity&amp;diff=42656"/>
		<updated>2006-03-18T07:36:23Z</updated>

		<summary type="html">&lt;p&gt;155.232.250.51: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Programming:PHP and MySQL|TOC]]&lt;br /&gt;
&lt;br /&gt;
Introduction&lt;br /&gt;
&lt;br /&gt;
Opening a Connection to a MySQL Database&lt;br /&gt;
&lt;br /&gt;
Creating a Query&lt;br /&gt;
&lt;br /&gt;
Retrieving data from a SELECT Query&lt;br /&gt;
&lt;br /&gt;
Closing a Database Connection&lt;/div&gt;</summary>
		<author><name>155.232.250.51</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Form_Handling&amp;diff=42727</id>
		<title>Archive:PHP and MySQL Programming/Form Handling</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Form_Handling&amp;diff=42727"/>
		<updated>2006-03-18T07:30:36Z</updated>

		<summary type="html">&lt;p&gt;155.232.250.51: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Programming:PHP and MySQL|TOC]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
In order to get user input without using the command line, then you will use HTML forms. PHP has various functions and techniques for handling the input from HTML forms. In specific, we will use the special array variables $_GET[] and $_POST[].&lt;br /&gt;
&lt;br /&gt;
== HTML Forms ==&lt;br /&gt;
&lt;br /&gt;
Before we start using these special variables, lets have a look at how to set up the HTML forms to interact with PHP. Here is a simple example form :&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;HTML&amp;gt;&lt;br /&gt;
 &amp;lt;HEAD&amp;gt;&amp;lt;TITLE&amp;gt;HTML Form Example&amp;lt;/TITLE&amp;gt;&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
 &amp;lt;BODY&amp;gt;&lt;br /&gt;
    &amp;lt;FORM method=&#039;POST&#039; action=&#039;form_handler.php&#039;&amp;gt;&lt;br /&gt;
      username : &amp;lt;INPUT type=&#039;text&#039; name=&#039;username&#039;&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
      password : &amp;lt;INPUT type=&#039;password&#039; name=&#039;password&#039;&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
      &amp;lt;INPUT type=&#039;submit&#039; value=&#039;GO&#039;&amp;gt;&lt;br /&gt;
    &amp;lt;/FORM&amp;gt;&lt;br /&gt;
 &amp;lt;/BODY&amp;gt;&lt;br /&gt;
 &amp;lt;/HTML&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above example sets up a form with a `method` and an `action` attribute. The `method` defines how the data from the form is to be transferred to the page defined by `action`. The `method` can either be GET or POST. If GET is used, then all the form elements will be appended to the url of the target page (`action`), in this format : target?attrib1=val1&amp;amp;attrib2=val2&amp;amp;attrib3=val3 etc... These attributes are easily accessed in PHP by using the $_GET[] array variable;&lt;br /&gt;
&lt;br /&gt;
If POST is used, then the data will be put into a special server variable, and accessed in PHP by using the $_POST[] array variable;&lt;br /&gt;
&lt;br /&gt;
Note that in the HTML code, the `name` attribute of the INPUT tags are used as the reference strings in the $_GET and $_POST arrays, thus it is very important to always use unique values for the `name` attribute.&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
&lt;br /&gt;
To retrieve GET variables in the address url, we use the following method :&lt;br /&gt;
&lt;br /&gt;
 form_handler.php :&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 $username = $_GET[&#039;username&#039;];&lt;br /&gt;
 $password = $_GET[&#039;password&#039;];&lt;br /&gt;
 print &amp;quot;Username : $username \n Password : $password \n&amp;quot;;&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that GET is not good to use for this example, because you will generally not want username and password details being displayed in the URL. Rather use POST for login details and authentication.&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
&lt;br /&gt;
To retrieve POST variables, we use the following method :&lt;br /&gt;
&lt;br /&gt;
 form_handler.php :&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 $username = $_POST[&#039;username&#039;];&lt;br /&gt;
 $password = $_POST[&#039;username&#039;];&lt;br /&gt;
 print &amp;quot;Username : $username \n Password : $password \n&amp;quot;;&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that when POST is used, the posted data is completely invisible to the user.&lt;br /&gt;
&lt;br /&gt;
[[Programming:PHP and MySQL:Command Line Programming|&amp;lt;&amp;lt; 6. Command Line Programming]] | [[Programming:PHP and MySQL|TOC]]&lt;/div&gt;</summary>
		<author><name>155.232.250.51</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Form_Handling&amp;diff=42726</id>
		<title>Archive:PHP and MySQL Programming/Form Handling</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Form_Handling&amp;diff=42726"/>
		<updated>2006-03-18T07:30:12Z</updated>

		<summary type="html">&lt;p&gt;155.232.250.51: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Programming:PHP and MySQL|TOC]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
In order to get user input without using the command line, then you will use HTML forms. PHP has various functions and techniques for handling the input from HTML forms. In specific, we will use the special array variables $_GET[] and $_POST[].&lt;br /&gt;
&lt;br /&gt;
== HTML Forms ==&lt;br /&gt;
&lt;br /&gt;
Before we start using these special variables, lets have a look at how to set up the HTML forms to interact with PHP. Here is a simple example form :&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;HTML&amp;gt;&lt;br /&gt;
 &amp;lt;HEAD&amp;gt;&amp;lt;TITLE&amp;gt;HTML Form Example&amp;lt;/TITLE&amp;gt;&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
 &amp;lt;BODY&amp;gt;&lt;br /&gt;
    &amp;lt;FORM method=&#039;POST&#039; action=&#039;form_handler.php&#039;&amp;gt;&lt;br /&gt;
      username : &amp;lt;INPUT type=&#039;text&#039; name=&#039;username&#039;&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
      password : &amp;lt;INPUT type=&#039;password&#039; name=&#039;password&#039;&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
      &amp;lt;INPUT type=&#039;submit&#039; value=&#039;GO&#039;&amp;gt;&lt;br /&gt;
    &amp;lt;/FORM&amp;gt;&lt;br /&gt;
 &amp;lt;/BODY&amp;gt;&lt;br /&gt;
 &amp;lt;/HTML&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;FORM method=&#039;POST&#039;&amp;gt;&lt;br /&gt;
username : &amp;lt;INPUT type=&#039;text&#039; name=&#039;username&#039;&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
password : &amp;lt;INPUT type=&#039;password&#039; name=&#039;password&#039;&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
&amp;lt;INPUT type=&#039;submit&#039; value=&#039;GO&#039;&amp;gt;&lt;br /&gt;
&amp;lt;/FORM&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above example sets up a form with a `method` and an `action` attribute. The `method` defines how the data from the form is to be transferred to the page defined by `action`. The `method` can either be GET or POST. If GET is used, then all the form elements will be appended to the url of the target page (`action`), in this format : target?attrib1=val1&amp;amp;attrib2=val2&amp;amp;attrib3=val3 etc... These attributes are easily accessed in PHP by using the $_GET[] array variable;&lt;br /&gt;
&lt;br /&gt;
If POST is used, then the data will be put into a special server variable, and accessed in PHP by using the $_POST[] array variable;&lt;br /&gt;
&lt;br /&gt;
Note that in the HTML code, the `name` attribute of the INPUT tags are used as the reference strings in the $_GET and $_POST arrays, thus it is very important to always use unique values for the `name` attribute.&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
&lt;br /&gt;
To retrieve GET variables in the address url, we use the following method :&lt;br /&gt;
&lt;br /&gt;
 form_handler.php :&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 $username = $_GET[&#039;username&#039;];&lt;br /&gt;
 $password = $_GET[&#039;password&#039;];&lt;br /&gt;
 print &amp;quot;Username : $username \n Password : $password \n&amp;quot;;&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that GET is not good to use for this example, because you will generally not want username and password details being displayed in the URL. Rather use POST for login details and authentication.&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
&lt;br /&gt;
To retrieve POST variables, we use the following method :&lt;br /&gt;
&lt;br /&gt;
 form_handler.php :&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 $username = $_POST[&#039;username&#039;];&lt;br /&gt;
 $password = $_POST[&#039;username&#039;];&lt;br /&gt;
 print &amp;quot;Username : $username \n Password : $password \n&amp;quot;;&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that when POST is used, the posted data is completely invisible to the user.&lt;br /&gt;
&lt;br /&gt;
[[Programming:PHP and MySQL:Command Line Programming|&amp;lt;&amp;lt; 6. Command Line Programming]] | [[Programming:PHP and MySQL|TOC]]&lt;/div&gt;</summary>
		<author><name>155.232.250.51</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Form_Handling&amp;diff=42725</id>
		<title>Archive:PHP and MySQL Programming/Form Handling</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Form_Handling&amp;diff=42725"/>
		<updated>2006-03-18T07:29:47Z</updated>

		<summary type="html">&lt;p&gt;155.232.250.35: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Programming:PHP and MySQL|TOC]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
In order to get user input without using the command line, then you will use HTML forms. PHP has various functions and techniques for handling the input from HTML forms. In specific, we will use the special array variables $_GET[] and $_POST[].&lt;br /&gt;
&lt;br /&gt;
== HTML Forms ==&lt;br /&gt;
&lt;br /&gt;
Before we start using these special variables, lets have a look at how to set up the HTML forms to interact with PHP. Here is a simple example form :&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;HTML&amp;gt;&lt;br /&gt;
 &amp;lt;HEAD&amp;gt;&amp;lt;TITLE&amp;gt;HTML Form Example&amp;lt;/TITLE&amp;gt;&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
 &amp;lt;BODY&amp;gt;&lt;br /&gt;
    &amp;lt;FORM method=&#039;POST&#039; action=&#039;form_handler.php&#039;&amp;gt;&lt;br /&gt;
      username : &amp;lt;INPUT type=&#039;text&#039; name=&#039;username&#039;&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
      password : &amp;lt;INPUT type=&#039;password&#039; name=&#039;password&#039;&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
      &amp;lt;INPUT type=&#039;submit&#039; value=&#039;GO&#039;&amp;gt;&lt;br /&gt;
    &amp;lt;/FORM&amp;gt;&lt;br /&gt;
 &amp;lt;/BODY&amp;gt;&lt;br /&gt;
 &amp;lt;/HTML&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;FORM method=&#039;POST&#039;&amp;gt;&lt;br /&gt;
    username : &amp;lt;INPUT type=&#039;text&#039; name=&#039;username&#039;&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
    password : &amp;lt;INPUT type=&#039;password&#039; name=&#039;password&#039;&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
    &amp;lt;INPUT type=&#039;submit&#039; value=&#039;GO&#039;&amp;gt;&lt;br /&gt;
&amp;lt;/FORM&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above example sets up a form with a `method` and an `action` attribute. The `method` defines how the data from the form is to be transferred to the page defined by `action`. The `method` can either be GET or POST. If GET is used, then all the form elements will be appended to the url of the target page (`action`), in this format : target?attrib1=val1&amp;amp;attrib2=val2&amp;amp;attrib3=val3 etc... These attributes are easily accessed in PHP by using the $_GET[] array variable;&lt;br /&gt;
&lt;br /&gt;
If POST is used, then the data will be put into a special server variable, and accessed in PHP by using the $_POST[] array variable;&lt;br /&gt;
&lt;br /&gt;
Note that in the HTML code, the `name` attribute of the INPUT tags are used as the reference strings in the $_GET and $_POST arrays, thus it is very important to always use unique values for the `name` attribute.&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
&lt;br /&gt;
To retrieve GET variables in the address url, we use the following method :&lt;br /&gt;
&lt;br /&gt;
 form_handler.php :&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 $username = $_GET[&#039;username&#039;];&lt;br /&gt;
 $password = $_GET[&#039;password&#039;];&lt;br /&gt;
 print &amp;quot;Username : $username \n Password : $password \n&amp;quot;;&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that GET is not good to use for this example, because you will generally not want username and password details being displayed in the URL. Rather use POST for login details and authentication.&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
&lt;br /&gt;
To retrieve POST variables, we use the following method :&lt;br /&gt;
&lt;br /&gt;
 form_handler.php :&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 $username = $_POST[&#039;username&#039;];&lt;br /&gt;
 $password = $_POST[&#039;username&#039;];&lt;br /&gt;
 print &amp;quot;Username : $username \n Password : $password \n&amp;quot;;&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that when POST is used, the posted data is completely invisible to the user.&lt;br /&gt;
&lt;br /&gt;
[[Programming:PHP and MySQL:Command Line Programming|&amp;lt;&amp;lt; 6. Command Line Programming]] | [[Programming:PHP and MySQL|TOC]]&lt;/div&gt;</summary>
		<author><name>155.232.250.35</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Form_Handling&amp;diff=42724</id>
		<title>Archive:PHP and MySQL Programming/Form Handling</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Form_Handling&amp;diff=42724"/>
		<updated>2006-03-18T07:28:21Z</updated>

		<summary type="html">&lt;p&gt;155.232.250.19: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Programming:PHP and MySQL|TOC]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
In order to get user input without using the command line, then you will use HTML forms. PHP has various functions and techniques for handling the input from HTML forms. In specific, we will use the special array variables $_GET[] and $_POST[].&lt;br /&gt;
&lt;br /&gt;
== HTML Forms ==&lt;br /&gt;
&lt;br /&gt;
Before we start using these special variables, lets have a look at how to set up the HTML forms to interact with PHP. Here is a simple example form :&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;HTML&amp;gt;&lt;br /&gt;
 &amp;lt;HEAD&amp;gt;&amp;lt;TITLE&amp;gt;HTML Form Example&amp;lt;/TITLE&amp;gt;&amp;lt;/HEAD&amp;gt;&lt;br /&gt;
 &amp;lt;BODY&amp;gt;&lt;br /&gt;
    &amp;lt;FORM method=&#039;POST&#039; action=&#039;form_handler.php&#039;&amp;gt;&lt;br /&gt;
      username : &amp;lt;INPUT type=&#039;text&#039; name=&#039;username&#039;&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
      password : &amp;lt;INPUT type=&#039;password&#039; name=&#039;password&#039;&amp;gt; &amp;lt;BR&amp;gt;&lt;br /&gt;
      &amp;lt;INPUT type=&#039;submit&#039; value=&#039;GO&#039;&amp;gt;&lt;br /&gt;
    &amp;lt;/FORM&amp;gt;&lt;br /&gt;
 &amp;lt;/BODY&amp;gt;&lt;br /&gt;
 &amp;lt;/HTML&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above example sets up a form with a `method` and an `action` attribute. The `method` defines how the data from the form is to be transferred to the page defined by `action`. The `method` can either be GET or POST. If GET is used, then all the form elements will be appended to the url of the target page (`action`), in this format : target?attrib1=val1&amp;amp;attrib2=val2&amp;amp;attrib3=val3 etc... These attributes are easily accessed in PHP by using the $_GET[] array variable;&lt;br /&gt;
&lt;br /&gt;
If POST is used, then the data will be put into a special server variable, and accessed in PHP by using the $_POST[] array variable;&lt;br /&gt;
&lt;br /&gt;
Note that in the HTML code, the `name` attribute of the INPUT tags are used as the reference strings in the $_GET and $_POST arrays, thus it is very important to always use unique values for the `name` attribute.&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
&lt;br /&gt;
To retrieve GET variables in the address url, we use the following method :&lt;br /&gt;
&lt;br /&gt;
 form_handler.php :&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 $username = $_GET[&#039;username&#039;];&lt;br /&gt;
 $password = $_GET[&#039;password&#039;];&lt;br /&gt;
 print &amp;quot;Username : $username &amp;lt;BR&amp;gt; Password : $password \n&amp;quot;;&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please note that GET is not good to use for this example, because you will generally not want username and password details being displayed in the URL. Rather use POST for login details and authentication.&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
&lt;br /&gt;
To retrieve POST variables, we use the following method :&lt;br /&gt;
&lt;br /&gt;
 form_handler.php :&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 $username = $_POST[&#039;username&#039;];&lt;br /&gt;
 $password = $_POST[&#039;username&#039;];&lt;br /&gt;
 print &amp;quot;Username : $username &amp;lt;BR&amp;gt; Password : $password \n&amp;quot;;&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that when POST is used, the posted data is completely invisible to the user.&lt;br /&gt;
&lt;br /&gt;
[[Programming:PHP and MySQL:Command Line Programming|&amp;lt;&amp;lt; 6. Command Line Programming]] | [[Programming:PHP and MySQL|TOC]]&lt;/div&gt;</summary>
		<author><name>155.232.250.19</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Form_Handling&amp;diff=42723</id>
		<title>Archive:PHP and MySQL Programming/Form Handling</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Form_Handling&amp;diff=42723"/>
		<updated>2006-03-18T07:10:01Z</updated>

		<summary type="html">&lt;p&gt;155.232.250.51: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Programming:PHP and MySQL|TOC]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
In order to get user input without using Command Line Programming&lt;br /&gt;
&lt;br /&gt;
== HTML Forms ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== GET ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== POST ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Programming:PHP and MySQL:Command Line Programming|&amp;lt;&amp;lt; 6. Command Line Programming]] | [[Programming:PHP and MySQL|TOC]]&lt;/div&gt;</summary>
		<author><name>155.232.250.51</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Session_Handling&amp;diff=42680</id>
		<title>Archive:PHP and MySQL Programming/Session Handling</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming/Session_Handling&amp;diff=42680"/>
		<updated>2006-03-18T07:09:12Z</updated>

		<summary type="html">&lt;p&gt;155.232.250.19: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Programming:PHP and MySQL|TOC]]&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
HTML and PHP are &amp;quot;stateless&amp;quot; languages. Meaning that they are incapable of retaining a state between pages. To get around this serious limitation, we use Sessions. With sessions, session variables are stored in a file on the web server and so are acessible accross multiple pages.&lt;br /&gt;
&lt;br /&gt;
== Starting a Session ==&lt;br /&gt;
&lt;br /&gt;
Before we can start using session variables, we need to start a session. This needs to be done on every page that makes use of session variables. It is important to note that a session must be started BEFORE ANYTHING IS OUTPUTED. Here is the code to start a session :&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 session_start();&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Please make sure that there are NO SPACES before the &amp;quot;&amp;lt;?&amp;quot; (php starting tag), as that will return errors!&lt;br /&gt;
&lt;br /&gt;
It is worth noting, that the way in which the server distinguishes between multiple sessions being implemented on it simultaneously is by session ID&#039;s. When a unique session is created, it is assigned a Session ID, which the browser retains, and is used to let the we server know which session to use.&lt;br /&gt;
&lt;br /&gt;
== Writing Session Variables ==&lt;br /&gt;
&lt;br /&gt;
Once a session is created, variables may be stored in the $_SESSION[] array variable. Here is an example :&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 session_start();&lt;br /&gt;
 $_SESSION[&#039;user_name&#039;] = &amp;quot;Administrator&amp;quot;;&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Retrieving Session Variables ==&lt;br /&gt;
&lt;br /&gt;
Once a session is created, and variables are stored, they may be retrieved from the $_SESSION[] array. Here is an example :&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 session_start();&lt;br /&gt;
 if (isset($_SESSION[&#039;user_name&#039;])){&lt;br /&gt;
    $user_name = $_SESSION[&#039;user_name&#039;];&lt;br /&gt;
    print $user_name;&lt;br /&gt;
 }&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The above example starts a session, then checks if the session variable &#039;user_name&#039; has been created (with the isset() function), if it has, then it assigns its value to $user_name, and prints it to the screen.&lt;br /&gt;
&lt;br /&gt;
== Destroying a Session ==&lt;br /&gt;
&lt;br /&gt;
To destroy a session, we use the session_destroy() function. This is useful if we want to, for example, log a user off of a web-application. Thus we would use the following code :&lt;br /&gt;
&lt;br /&gt;
 logoff.php&lt;br /&gt;
 &amp;lt;?&lt;br /&gt;
 session_start();&lt;br /&gt;
 session_destroy();&lt;br /&gt;
 ?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that we first need to start the session before we destory it. This is because the session_destroy() function destroys the currently active session.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Programming:PHP and MySQL:Database Connectivity|&amp;lt;&amp;lt; 4. Database Connectivity]] | [[Programming:PHP and MySQL|TOC]] | [[Programming:PHP and MySQL:Command Line Programming|&amp;gt;&amp;gt; 6. Command Line Programming]]&lt;/div&gt;</summary>
		<author><name>155.232.250.19</name></author>
	</entry>
	<entry>
		<id>https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming&amp;diff=42921</id>
		<title>Archive:PHP and MySQL Programming</title>
		<link rel="alternate" type="text/html" href="https://ideawaza.com/index.php?title=Archive:PHP_and_MySQL_Programming&amp;diff=42921"/>
		<updated>2006-03-18T07:03:45Z</updated>

		<summary type="html">&lt;p&gt;155.232.250.19: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Table of Contents ==&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;PHP&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. [[Programming:PHP and MySQL:Introduction|Introduction to PHP]]&lt;br /&gt;
&lt;br /&gt;
2. [[Programming:PHP and MySQL:PHP Syntax|Syntax Overview]]&lt;br /&gt;
&lt;br /&gt;
3. [[Programming:PHP and MySQL:File Handling|File Handling]]&lt;br /&gt;
&lt;br /&gt;
4. [[Programming:PHP and MySQL:Database Connectivity|Database Connectivity]]&lt;br /&gt;
&lt;br /&gt;
5. [[Programming:PHP and MySQL:Session Handling|Session Handling]]&lt;br /&gt;
&lt;br /&gt;
6. [[Programming:PHP and MySQL:Command Line Programming|Command Line Programming]]&lt;br /&gt;
&lt;br /&gt;
7. [[Programming:PHP and MySQL:Form Handling|Form Handling]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;MySQL&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
1. [[Programming:PHP and MySQL:Introduction to MySQL|Introduction to MySQL]]&lt;br /&gt;
&lt;br /&gt;
2. [[Programming:PHP and MySQL:Creating a Database|Creating a Database]]&lt;br /&gt;
&lt;br /&gt;
3. [[Programming:PHP and MySQL:Creating a Table|Creating a Table]]&lt;/div&gt;</summary>
		<author><name>155.232.250.19</name></author>
	</entry>
</feed>