[RESOLVED] Text box change value on button click
Results 1 to 3 of 3

Thread: [RESOLVED] Text box change value on button click

  1. #1
    Junior Member
    Join Date
    Mar 2012
    Posts
    11

    resolved [RESOLVED] Text box change value on button click

    I have a text box that outputs the value of the web price within a table:

    <input type="text" name="Web_Price" value="<?php echo $row_Products['Web_Price']; ?>" size="8" />

    I would like this text box, when a button is clicked, to ouput a new price that is within another table instead of the current value output from <?php echo $row_Products['Web_Price']; ?>" size="8" />. This table is called ProductsUpdated. Any ideas would be appreciated.

  2. #2
    Beware: Crazy Scientist leatherback's Avatar
    Join Date
    Mar 2002
    Location
    Small border town between Netherlands and Germany
    Posts
    5,395
    You are going to have to reload the page, or use an ajax script to get this done. once the page ios loaded, and available to the user to click on, PhP cannot directly work on the page.
    Php 4.* to 5.*. A small step for programmers. But a leap for me!

  3. #3
    Junior Member
    Join Date
    Mar 2012
    Posts
    11
    Done, thanks for the help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •