Can you set a form field value with PHP?
Posted
by dcp3450
on Stack Overflow
See other posts from Stack Overflow
or by dcp3450
Published on 2010-05-28T15:43:32Z
Indexed on
2010/05/28
15:52 UTC
Read the original article
Hit count: 188
I use the $_GET function to pull a value with php from the url (http:..../index.html?variable=value), basic stuff. However, I need to use that value in my form.
Typically, I would set
<?php echo 'value="'.$variable.'"' ; ?>
or something to that effect. However, I can't use php inside my form using the editor I'm working with.
Can I set a value in the form without using PHP in my form? If so, how?
© Stack Overflow or respective owner