[snip]
You'll have to forgive me as I am unfamiliar with PHP, still a
beginner!! So if I have a page (page1.php) which is my first page with a
form. When I click a normal link within this form it takes me to
page2.php. This page has another smaller form. When the submit button in
this form is clicked it updates the database with no problems and
displays a link - linking back to page1.php (I have decided not to use
redirect). How do load the page and fill all the text boxes with the
information that was already written - because this information (from
page1.php, first form) has not been saved to the database yet.

You probably knew this anyway - but I had to go through that process to
satisfy myself!!
[/snip]

If you are just clicking on a link instead of submitting the information
you have not populated any variables...so no recall is available unless
the clicked link is formatted to hold the variables (a GET). For
instance

<a href = "someotherpage.php?name=Gary">Click Here</a>

$_GET['name'] is equal to "Gary"

You can do it for more than one variable...

<a href = "someotherpage.php?name=Gary&address=Chicago">Click Here</a>

$_GET['name'] is equal to "Gary"
$_GET['address'] is equal to "Chicago"


HTH!

Jay

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to