Hi there:
I have a page (page1.php) where I use a list box (box1) with dynamic content where project names are displayed from a sql query to a table and I have a text field (text1) where the user inputs the project password; once project name has been selected and the password entered the user click a submit button; I use a 'form action = page2.php' where in such page I validate the password, if the password is right I take the user to a specific page where I want the selected project password (from box1) to be passed to a text field (text3) in another page (page3.php).
Then what I do is next:
in page1.php to have the list box (box1) and text field (text1) and a submit button.
in page2.php I use post method $PNAME=$_POST['PNAME']; $PPASS=$_POST['PPASS']; to get user inputs.
in page3.php I have a textfield (text3) where I defined it as: <input name="PNAME" type="text" id="PNAME" value="<?php $submitted_text =$_POST['PNAME']; echo $submitted_text; ?>"/>
when I run it, it tells me that PNAME has not been defined.
Any hints?
Thanks!
I have a page (page1.php) where I use a list box (box1) with dynamic content where project names are displayed from a sql query to a table and I have a text field (text1) where the user inputs the project password; once project name has been selected and the password entered the user click a submit button; I use a 'form action = page2.php' where in such page I validate the password, if the password is right I take the user to a specific page where I want the selected project password (from box1) to be passed to a text field (text3) in another page (page3.php).
Then what I do is next:
in page1.php to have the list box (box1) and text field (text1) and a submit button.
in page2.php I use post method $PNAME=$_POST['PNAME']; $PPASS=$_POST['PPASS']; to get user inputs.
in page3.php I have a textfield (text3) where I defined it as: <input name="PNAME" type="text" id="PNAME" value="<?php $submitted_text =$_POST['PNAME']; echo $submitted_text; ?>"/>
when I run it, it tells me that PNAME has not been defined.
Any hints?
Thanks!