Hello all.
I am a complete newbie when it comes to php and I have been looking for a way to use an html form to supply information to a separate existing php page.
I want to create a lineup or roster page from the values supplied in an html form. Currently I have a html page with a form using the following form code:
<form name="lineupform" action="roster.php" method="get">
<p>
Name: <input type="text" size="20" name="n1" id="n1"><br /><br />
Name: <input type="text" size="20" name="n2" id="n2"><br /><br />
Name: <input type="text" size="20" name="n3" id="n3"><br /><br />
<input TYPE="SUBMIT" CLASS="button" value="SUBMIT LINEUP" /> <input type="reset" value="RESET LINEUP" class="button2" /></p>
</form>
Then roster.php, after the usual html declarations and tags, has the following that I am trying to use to display the data:
[php]
<?php echo $_GET['d2']; ?>
<?php echo $_GET['d3']; ?>
[/php]
But when I complete the form page and hit submit I get a blank roster.php page.
Any help would be appreciated.