hi

i am creating a webpage with a menu down the left hand side. depending on which link in the menu you click a table on the right of will show the relavent information. the table will show the relavent information from a mysql table based on the link clicked.

how do I track which link is been clicked?

thanks

i have found that i can do this using javascript. my form looks like this:

<form name="form" method="post" action="processpage.php" >
                <li> <h3> links</h3>
					<ul>
						<li><a name="link1" href="javascript: void(1);" onClick="submitForm('link1');">like1</a></li>

this javascript code submits the form to the processpage:

function submitform()
			{
  				document.form.submit();
			}

but on the process page i do to make sure the link that is being clicked a passed to the process page: <?php print $_POST["form"]; ?>

put it doesnt print anything i get an error:

Notice: Undefined index: submit in C:\wamp\www\processpage.php on line 31

i have come up with a solution

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.