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

    Join Date
    Apr 2000
    Rep Power
    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?

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

    Join Date
    Dec 1999
    Caro, Michigan
    Rep Power
    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; ?>">

    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

Similar Threads

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

IMN logo majestic logo threadwatch logo seochat tools logo