The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Why does this not work? Using Wamp5 installation

The code below is giving me grief. If I redirect index.php back to itself in the form event, and of course put the variables into place - $Fname = $_POST['TFN']; then it returns with the value still in my input box. However if I send it to another form and back with process.php, my variable $Fname is empty.
I tried adding a line to prevent issue of Race being established, but it made no difference. I still think I have a configuration problem of php, unless there is a real issue as to why this fails. Appreciate any help. Thanks

Clicking the 'Back' link puts the browser at index.php. There was no POSTed form so there is no data in $_POST. That's not a configuration problem -- that's just not writing the code to do what you want

PHP Code:

<a href="index.php?Fname=<?php echo $_POST['TFN']; ?>">back</a>

That would make $_GET['Fname'] available on index.php.

Off Topic:

Why do you keep writing "session_start;"? session_start() is a function (note the parentheses), but you never do anything with the session.

Thanks Dan,
I tried your code in the return button, and I see the Fname value appear in the browser address. I don't know how to get that and put it back in the textbox. Basically I have been stuck with this problem for 2 weeks. All I want is an input box to retain anything that was entered in it, to be there when going back to the page again. Many thanks again

Still struggling to find where variables go missin

Reviewed look at problem

This page allows 1 input box to be entered with data. On submission it goes to process.php which
will do other things, but at the moment it reverts back to this page (index.php) I want it to come back with
the data still in the textbox (as though it was recalled for review/editing/change)
As you see when it does come back, nothing gets echoed back, even if I allow $Fname = $_SESSION['HLD']; to
be remmed out. All data in the second form arrives there all okay, it gets lost comming back.