Home >> PHP - MySQL Programming with PHP 2.1 [Page 9] Article by: Shelton Manage Tuesday, 26th May, 2009
Sending values to a script manually
Two diffent ways you can pass PHP script variables and values. The firsat method is to make use of HTMLs hidden input type:input type="hidden" name="name" valuue="Brain" The second method is to append a value to the handdling PHP script;s URL: www.dynamiccodes.com/articles/page.php?name=Brain. This technique emulates the get method of and HTML form and can beuse in lieu of or as well as an HTML form.
This form has two new features. First it storesprice and tax rate in hidden inputs. Second, the form action attribute of the form has ?source=calculater.php code. By doing this, the page that handle the form recieve a indicate $source variable indicate where the data came from.