I have hyperlinks directing to a page with a form to fill ( that page is called main_form.php). I want to be able to send a variable through the click of the hyperlink to 'main_form.php'. Note; the href attribute for the hyperlink is called from a database.How do I do this?
why you take href from db, if you know your target is main_form.php?
Anyway, [man]urlencode()[/man] your variable, append it to the href ("main_form.php?varname=$varvalue"), and print it to the page.