new to php need help to change prepopulated textarea
Posted: Mon Apr 21, 2008 12:20 pm
I'm new to php, and need help with a form textarea. My textarea is pre-populated using the following code:
The problem is, I want to replace the pre-populated value ($producttitle;) if a user clicks on a URL that has a string using
I tried using the above code, but both values display in the form textarea.
Any help would be greatly appreciated, as I've search all over internet trying to find a solution.
Thanks
Code: Select all
<textarea name="Rqmnts" cols="80" rows="5" id="Rqmnts"><?php echo $producttitle; ?><?= @$_GET["Requirements"] ?></textarea>Code: Select all
<a href="?Requirements=Some String for specific product name">Any help would be greatly appreciated, as I've search all over internet trying to find a solution.
Thanks