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

Popular posts from this blog

python - matpltolib navigation toolbar edit curves and parameters line color automatically changes issue -

node.js - Nodejs javascript implementation of PBEWithMD5AndTripleDES/CBC/PKCS5Padding -