I have <input class="wrapped-input" type="text" id="widgetu8287_input" name="custom_U8287" tabindex="12"> I need to send the email address data via a POST request, how can I do this? How to pass data to request? I use Golang
1 answer
<input type="hidden" name="email"> will help you. Add code in the form, along with yours and it will be passed to the handler.
<? echo '1 = ' . $_POST['1'] . '<br>'; echo 'скрытое = ' . $_POST['hid'] . '<br>'; ?> <form action="./" method="post"> <input type="text" name="1" id="1"> <input type="hidden" name="hid" value="скрытое"> <input type="submit" value="отправить"> </form> Add the code above to your file and see how the data is transferred. Here is the manual
- Can be more? I did not quite understand, especially I don’t know how to provide it in the request and implement it. Please can code for example - Jack Smith
- Added code and link to mat part. - Ruslan Semenov
|