#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2000
    Posts
    19
    Rep Power
    0
    Im makeing a front end for a countdown script. What I would like to do Is have a form with the current settings displayed in the appropiate boxes (called from variables) I got that part down. Icant figure out how to change the values of the variable so when I hit submit it saves them. Any suggestions?

    Thanks,
    Ryan
  2. #2
  3. Banned (not really)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Dec 1999
    Location
    Brussels, Belgium
    Posts
    14,648
    Rep Power
    4493
    You'd have to use javascript to to change the values automatically. or manipulate the values with PHP before you print them into the boxes.

    If the problem is how to actually save the variables, i don't think i have enough info. are you putting them into a database, file, etc??

    Whatever the form elements are named become variables in the 'action' file where the form is submitted to. if you have:
    <form method="post" action="analyze.php3">
    <input type="text" name="job" value="<?php echo $inputed_value; ?>">
    </form>

    Then in analyze.php3, you can access the whatever was in the text box by the variable $job, whether it was the inputed value you said you can already put there, or whatever you changed it too.


    Maybe no help, but that's my 2 cents....

    ---John Holmes
    ---www.SepodatiCreations.com

Similar Threads

  1. Passing POST variables
    By rlorenzo in forum PHP Development
    Replies: 11
    Last Post: June 6th, 2004, 03:00 PM
  2. Replies: 2
    Last Post: February 11th, 2004, 12:03 AM
  3. functions and variables
    By uniopp in forum PHP Development
    Replies: 7
    Last Post: September 25th, 2003, 10:43 AM
  4. Automatically creating class variables
    By dreamstring in forum PHP Development
    Replies: 1
    Last Post: August 15th, 2003, 10:12 AM
  5. Session variables changing values randomly
    By c0p0n in forum PHP Development
    Replies: 10
    Last Post: July 23rd, 2003, 10:21 AM

IMN logo majestic logo threadwatch logo seochat tools logo