Hi,
I need to pass more than one value to next form using header function.this is my sample code.

header('location:option.php?$uname='.$myusername.'+password='.$mypassword);

i am able to pass single value,but when i tried with more than one value as above,i am facing the problem please help me.In second page i retrive the values using GET method.

Use & not +.

header("location: somepage.php?username=".$username."&password=".$password);

Use & not +.

header("location: somepage.php?username=".$username."&password=".$password);

It's working fine now.........


Thanks a lot.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.