Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to access form's attributes?

Status
Not open for further replies.

iostream71

Programmer
Mar 13, 2002
229
US
like, say i want to populate a form's fields with some default value via php
 
hi,
<?php
$somevalue1 = &quot;somedefaultvalue1&quot; ;
$somevalue2 = &quot;somedefaultvalue2&quot; ;






<form action=somescript.php method=...>

<input type=text name=field1 value=<?php echo $somevalue;
?>>
<textarea><?php echo $somevalue2 ; ?></textarea>

...
</form>



cheers

spookie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top