javascript - how to submit html form with current hash location -
i have html form want able submit current hash location
<form action="editcustomer.php?seq=<?php echo $_get["seq"]; ?>#" method="post" name="form1">
is possible?
to current hash value, you'll need this:
<form onsubmit="this.action='editcustomer.php'+location.hash" action="editcustomer.php" method="post" name="form">
off topic: it's common practice this, makes possible jump added anchor point, example directly submitted form (#form-xy), enhancing user experience.
Comments
Post a Comment