Pass subject from link to contact form?

Hi, does anyone know how to pass the subject from a link to the contact form page that it links to? It doesn’t necessarily have to be PHP. Thanks, I appreciate your help.

I want to be able to link to contact.php (the page that has the form on it), and have the subject field passed from the link that they clicked to get there.

can you post an example of what you’re trying to do. you could just put <a href=‘name.php?subject=Name Of Subject’> Name of the link here </a> its a messy way to do it but get the job done…

in the contact form you would do
echo $_GET[‘subject’]; lol

That worked great, thanks!

Please make that

<a href=“contact.php?subject=Name+of+subject+here”>Name of the link here</a>

as the above isn’t a valid URL (they can’t contain spaces)

Ok, thanks.