TOP TECH
  Learn How to.....
Welcome IT Related Articles Member Area  |  Sign In  |  Sign Up
.: Home :.
General
HTML
CSS
PHP
PHP-MySQL
FrontPage
Photoshop
CorelDRAW
PageMaker
MS Office
VisualBasic
All
.

.: Home :.

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.

Ex: calculator.html | handle_calculator.phps | handle_calculator.php



Page: First - 1 2 3 4 5 6 7 8 9 10 - Last

 



Comments


© 2009 Top Sri Lanka Top Tech.
Articles Manager β - Script by: DynamicCodes.com