Jump to content

declare a variable in HTML


Bee

Recommended Posts

Hi,

I wonder if you can help with this please:
I want to get a value in HTML and assign it to PHP variable when user clicks on a link. The link value is not the value I want to pass to the php variable.

for example:
<a href="something.html"><some way to declare number = 1 in html>
<a href="something.html"><some way to declare number = 2 in html>


if user clicks on the first link phpVar will equal 1....etc.
phpVar = number;

Thank you in advance,
B
Link to comment
https://forums.phpfreaks.com/topic/7588-declare-a-variable-in-html/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.