#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Location
    Sweden
    Posts
    384
    Rep Power
    15
    Hello.

    I have a problem with transmitting information from one, to another file in PHP.
    This is how I do:


    <form action=step1.php3>
    <textarea rows="2" name="message" cols="20">
    <input type=submit>
    </form>

    Step1.php3:

    <form action=step2.php3>
    <input type=hidden name=message value=<?php echo $message ?>>
    Information2: <input type=text name=info2><br>
    <input type=submit>

    Step2.php3:

    Message: <?php echo $message ?>


    When I come to step2, the message is only one word long.
    What´s wrong?

    Regards,
    Christoffer
    SWEDEN
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    You need to place quotes around the hidden field value so that it can be passed. Otherwise, it'll be truncated at the first space. (this is an HTML issue).

    <input type=hidden name=message value="<?php echo $message ?>">

Similar Threads

  1. C program to read from a data file into an array
    By rathornton in forum C Programming
    Replies: 4
    Last Post: March 16th, 2004, 12:23 PM
  2. Extracting certain data with Shell from a file?
    By dacash in forum Linux Help
    Replies: 0
    Last Post: February 7th, 2004, 10:18 PM
  3. Newbie trying to load data file
    By wab25 in forum Flash Help
    Replies: 2
    Last Post: February 6th, 2004, 05:21 PM
  4. Replies: 2
    Last Post: February 6th, 2004, 08:25 AM
  5. Read a ext. file and group the data???
    By D-flyer in forum PHP Development
    Replies: 2
    Last Post: January 25th, 2004, 04:48 PM

IMN logo majestic logo threadwatch logo seochat tools logo