If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 2 of 2
  1. #1
    Senior Member
    Join Date
    Oct 2007
    Member #
    I am trying to test a very simple form to see if i can display the input in another page. But it doesnt display anything in the destination page.

    Here is the html code in the first file:
    <form method="post" action"displayresults.php">
    first input:<br/>
    <input type="text" name="myinput1" />

    and in displayresults.php I have the following code
    echo $myinput1;
    And it is not displaying any info that I entered.
    I have two questions:
    1-Why this does not work, what's wrong?
    2-When I submit values in the first file, where and when do those values get stored? Does it get sent right away to the destination page? I mean lets say I submit info and then turn off my computer and then next day when I open displayresults.php is it supposed to show the result or do you need to do it in the same session, or how does this work?


  3. #2
    WDF Staff mlseim's Avatar
    Join Date
    Apr 2004
    Cottage Grove, Minnesota
    Member #
    720 times
    Question 2 first ...
    It gets sent right away to the destination page (it is "posted" as you defined).
    It will not save it unless you're using sessions. There is another possibility where the
    variable could be used again ... if "globals" are enabled:

    Question 1 ...
    What you're doing should work. Hard to tell from your example, but I'm assuming
    you also have a "submit button" and </form> at the end of your form?
    Maybe you can show us your actual form (give us the URL).

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
All times are GMT -6. The time now is 11:56 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: