Page 2 of 2

Posted: Thu Aug 03, 2006 12:17 pm
by Christopher
You might want to check to see if it is exactly named 'userName' in the form -- you have that capital N in there. Try this to see what the form is actually sending:

Code: Select all

function dump($var) {
        echo '<pre>' . print_r($var, 1) . '</pre>';
}
dump($_POST);

Posted: Thu Aug 03, 2006 12:29 pm
by nhan
it only displays :


Array
(
)


:(

Posted: Thu Aug 03, 2006 12:30 pm
by Benjamin
Nothing is being posted to that page then.

Posted: Thu Aug 03, 2006 12:35 pm
by Christopher
nhan wrote:it only displays :
Array
(
)
So on your original post, what HTML form sends data to page 1?

Posted: Thu Aug 03, 2006 12:38 pm
by nhan
yes, but when i click the back button.... and re enter the data.... those in the print command are being displayed... :( are there any scripts that would do the same function... im not really good at php.. :)

Posted: Thu Aug 03, 2006 12:43 pm
by Christopher
Maybe if you posted both/all your pages we could help you better.

Posted: Thu Aug 03, 2006 12:43 pm
by nhan
to aborint:

Code: Select all

form action: <form action='$_SERVER[PHP_SELF]' method='post'>

for username : <input type='text' name='userName' value='$_POST[userName]'>
for group: 
                <select name='group'>
               	<option value = MRQ >MRQ</option>
	<option value = PBO >PBO</option>
	<option value = PHA >PHA</option>
	<option value = LGV >LGV</option>
              </select>

for process:
                 <select name='process'>
               	<option value = process1 >process1</option>
	<option value = process2>process2</option>
	<option value = process3>process3</option>
	<option value = process4 >process4</option>
              </select>
thanks for the help guys... :)

Posted: Thu Aug 03, 2006 12:46 pm
by nhan
to aborint:

i have already posted the code on the previous threads.... i have just removed the unnecessary ones... :)

Posted: Thu Aug 03, 2006 1:13 pm
by Christopher
That looks like it should work if there is a value in that text field. It probably is not a session problem unless session are not working at all. I would separately test the form and the session to make sure each is working and then combine.