Jump to content

[SOLVED] hrefs with $_POST?


EchoFool

Recommended Posts

<script language="Javascript">
  function submitInfo(x) {
    document.getElementById('someField').value = x;
    document.getElementById('someForm').submit();
  }
</script>

<a href='javascript: void(0);' onclick="submitInfo('someValue');">do something</a>
<form id='someForm' method='post' action='someplace.php'>
  <input type='hidden' id='someField' name='someField' value='' />
</form>

 

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.