html form add hidden post information code example

Example: if the page is opened so count and put it to the value of hidden input

    <label for="title">Post title:</label>
    <input type="text" id="title" name="title" value="My excellent blog post">
    <label for="content">Post content:</label>
    <textarea id="content" name="content" cols="60" rows="5">
This is the content of my excellent blog post. I hope you enjoy it!
    <button type="submit">Update post</button>
  <input type="hidden" id="postId" name="postId" value="34657">


Html Example