MySQL Forums
Forum List  »  PHP

Re: POSTing a a value from inside a table, using hidden field and submitting using JavaScript
Posted by: Peter Brawley
Date: October 30, 2018 09:29AM

<script type="text/javascript">
  function xxxsubmit( f ) {
    .. whatever processing is desired ...
    f.submit();
  }
</script>

echo "<FORM style='display:inline' action='YOURSCRIPNAME' method='POST'>\n",
     "  <input type='hidden' name='YOURPKCOLNAME'  value='THISPKCOLVAL'>\n",
     "  <input type='button' value='Select' onClick='xxxsubmit(this.form)'>\n",
     "</FORM>\n";

In the above, insert code to fill in the col name & val.

Is that what you mean?

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.