Click here to Skip to main content
15,905,971 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hello guys....i really need help here....
can i do this hyperlink to pass my data to other page...

<a href="viewWall.php?'stud_name=<?php echo $row['stud_name'];?>'&&'matric_no=<?php echo $row['matric_no'];?>'"></a>



thanks guys...i really appreciate it...
Posted
Updated 31-Mar-11 8:27am
v2
Comments
Albin Abel 31-Mar-11 14:00pm    
that is what called query string parameters. What exactly the problem

1 solution

Well, I guess what you are asking here is if '&&' (and some other special characters) can be used in a query string parameter name.

If so, answer is 'Yes' you can. All you need is to escape them. Best would be to use unicode for the characters such that everything is intact at the time of rendering and then the URL formed is launched properly.

You can just google on escaping the characters and do a quick test all by yourself.
 
Share this answer
 
v2
Comments
Albin Abel 31-Mar-11 14:16pm    
Informative. My 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900