Use <a href="link.php?var=$val"> -- make sure you use rawurlencode() on $val if you expect it to contain special characters that can't be passed via URL (such as spaces or ampersands).
Bogdan universal2001 wrote: > Hi! > > I'm new to PHP and I have tried to find the answer to my questions but I > still have no luck. > > I'm trying to make a page which is based on the data that I retrieved from > my database. now, I want to make a link (text) to a new page but I want to > pass my variable also. I don't have any form at all so .. how do I pass > avariable through a text link which is being clicked. > > thanks for reviewing my email > > any answer is greatly appriciated. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]