Can PHP control a form value directly
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Can PHP control a form value directly

From: David <martindb@sbcglobal.net>
Date: Tue Sep 06 2005 - 00:06:43 CEST

Ok. Can PHP control a form value directly? Eg. like the javascript
"document.Form1.text01.value = "Y"". Eg. allow me to put a value into
a form text field on page load. Either I missed this in my PHP book
or the function does not exist.

The only way I have seen is to put code in the value part of the input
item, see below.

Thanks

<input type="text" value = "<? echo sprintf("%01.2f",
$TotalCost);?>"/>
Received on Mon Oct 24 02:09:46 2005