How can I add a button that updates the content of a text box? I have a text box that fetch it's content from a database. If I want to modify it's values, all I have to do is to modify the content of the textbox manually and press the "save" button. It's a textbox that contains date value.
[PHP] How to add a button that updates the content of a text box
9
How can I add a button that updates the content of a text box?
I have a text box that fetch it's content from a database. If I want to modify it's values, all I have to do is to modify the content of the textbox manually and press the "save" button. It's a textbox that contains date value.
I want that improved. Instead of modifying the value or the date manually, I wanted to just add a button or a link that when pressed, automatically updates the contect of the textbox.
Here's the current code of the text box:
How can I insert a button or a link that updates the content of the text box? In which case, when it's pressed, update date value of the text box to the current date.
I have a text box that fetch it's content from a database. If I want to modify it's values, all I have to do is to modify the content of the textbox manually and press the "save" button. It's a textbox that contains date value.
I want that improved. Instead of modifying the value or the date manually, I wanted to just add a button or a link that when pressed, automatically updates the contect of the textbox.
Here's the current code of the text box:
Code:
<tr> <td width="24%" valign="top" class="form_title" >Date Confirmed Working:</td> <td width="76%" valign="top"><input type="text" name="DateTested_Setting_" size="10" maxlength="10" class="form_text" value="<?php echo $form_data["DateTested"] ?>" /> Format: YYYY-MM-DD <img src="images/icons/help.png" onclick="showHelp(this)" style="cursor:pointer" /> <div class="div_help"> Date in which the coupon is last tested and confirmed working. </div></td> </tr>
- emptee
- [1] reply
- KenWeiLL
- KenWeiLL
- emptee
- [ 1 ] Thanks
- KenWeiLL
- KenWeiLL
- [ 1 ] Thanks
- [1] reply
- emptee
- [ 1 ] Thanks
Next Topics on Trending Feed
-
9