ccrevcypsys Posted December 19, 2007 Share Posted December 19, 2007 Hello out there in php world.lol ne ways i need help on figuring out how to make a dynamic text area. What it needs to do is there is a select up above the text area and when someone selects something off of that drop down and they press add (or it just does it) then i need it to post in that textbox. But i am not smart enough to come up with logic that would work out. So this is what i have at the moment. <select name="addServ"><?php $query = "SELECT * FROM `serviceRequested`"; $result = mysql_query($query); while ($service = mysql_fetch_array($result, MYSQL_ASSOC)){ ?> <option value="<?php echo $service['id']; ?>"><?php echo $service['serviceName']; ?></option> <?php } ?></select> <a href='<?php echo "serviceOrder.php?p=so&"; ?>'>Add Item</a> <textarea name="servicerequested" disabled="disabled" class="textArea" cols="80" rows="10"> </textarea> Link to comment https://forums.phpfreaks.com/topic/82353-dynamic-textbox/ Share on other sites More sharing options...
taith Posted December 19, 2007 Share Posted December 19, 2007 you'd prolly wanna look into javascript for that :-) Link to comment https://forums.phpfreaks.com/topic/82353-dynamic-textbox/#findComment-418631 Share on other sites More sharing options...
ccrevcypsys Posted December 19, 2007 Author Share Posted December 19, 2007 ok what do u think i should search for exactly. its kindof a vauge topic and i cant custom program javascript yet. Link to comment https://forums.phpfreaks.com/topic/82353-dynamic-textbox/#findComment-418643 Share on other sites More sharing options...
taith Posted December 19, 2007 Share Posted December 19, 2007 http://www.tizag.com/javascriptT/javascript-getelementbyid.php Link to comment https://forums.phpfreaks.com/topic/82353-dynamic-textbox/#findComment-418644 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.