php - How to send a string in a hyperlink to fill a field in a form? -


i need have value in text field auto filled pre-selected variable. can string sent through hyperlink , filled in html form "text" area?

    <form method="post" action='googler.php'>     <label for="query">query</label><br/>     <input name="query" type="text" size="60" maxlength="60" value="" /><br /><br />  

in other words can "value" filled else if have used link page?

nothing in url cause browser auto-populate field.

any part of url (although query string parameter traditional) can used server side code set value attribute value when html generated.

value="<?php echo htmlspecialchars($_get['foo']); ?>" 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -