Microsoft
Software
Hardware
Network
Question : HTML - SQL - Carrying Form Variables from Page to Page
Hello experts.
I am trying to carry HTML form variables from page to page with PHP sessions. I am having trouble and believe it to be the way I have my pages set up.
Page1.php: (the first page with the first form itself).
TOP OF PAGE:
<?php
session_start();
$_SESSION['Name'] = $_POST['Name'];
?>
<html>
<form id="form2" method="POST" name="intern_apply" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="text" name="Name" id="Name" />
<?php
session_start();
$_SESSION['Name'] = $_POST['Name'];
?>
<a href="application_2.php">N
ext page</a>
...
then on application_2.php:
at the top:
<?php
session_start();
$Name = $_SESSION['Name'];
?>
then I want to carry the value fwd to a hidden field on this page, but I also for testing purposes want to see if on the screen so I know it's pulling forward:
<html>
<input type="text" name="Name" id="Name" value="<?php echo "$Name"; ?>"/>
</html>
How can I tell if my form variable is really being carried fwd? When I run the program that field on the second page is blank.
Thanks!
Answer : HTML - SQL - Carrying Form Variables from Page to Page
Here's a set of files that I created for a similar question. The final page generates an SQL string to put the data in a MySQL database but simply displays the info.
Random Solutions
CISCO 5505 Firewall Dashboard Access Rules Out of Sync Errors
WMI and SqlServerWriter under VSS writers both have issues, why do they always fail?
Run the Windows 'RUN" from vb.net
Exchange 2007 Autodiscover errors 1004 1005
How to set Combobox and Textbox to ReadOnly?
How to configure Busy Lamp Field - Speed dials on a Callmanager Express
Formatting hard drive on a Mac
Dsiable SBS 2008 / Outlook 2007 Auto Account Confiuration
What are the disadvantages between accessing a network share through my network places and through a mapped drive?
Outlook emails are "automagically" moving to trash