forms

Redirecting to a page after submitting form in HTML

元气小坏坏 提交于 2020-12-01 01:58:11
问题 I'm fairly new to coding in HTML. After hours of searching the internet for a way to do this, I failed and so I'm here. I was setting up a CSRF Proof of concept page here, I want it to redirect to another page which will execute the payload that the CSRF had implemented. <html> <body> <form action="https://website.com/action.php?" method="POST"> <input type="hidden" name="fullname" value="john" /> <input type="hidden" name="address" value="street 2, 32 ave" /> <input type="submit" value=

Laravel delete button with HTML form

青春壹個敷衍的年華 提交于 2020-11-28 02:01:45
问题 I'm using the HTML form, not Laravel Collective. For now I've successfully created a CRUD for a users in my CMS, but one thing bothers me: How can I set a Delete button in my list of users, instead of the specific edit page? Also, it will be nice when a user clicks on the Delete button to show up confirmation popup for deleting the specific user. So, here's my code: The controller: /** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */

Laravel delete button with HTML form

不想你离开。 提交于 2020-11-28 01:59:45
问题 I'm using the HTML form, not Laravel Collective. For now I've successfully created a CRUD for a users in my CMS, but one thing bothers me: How can I set a Delete button in my list of users, instead of the specific edit page? Also, it will be nice when a user clicks on the Delete button to show up confirmation popup for deleting the specific user. So, here's my code: The controller: /** * Remove the specified resource from storage. * * @param int $id * @return \Illuminate\Http\Response */

Why does the reset button on html forms not reset hidden fields?

非 Y 不嫁゛ 提交于 2020-11-27 04:55:36
问题 I discovered something surprising: <html> <head> <script type="text/javascript"> function f() { document.getElementById("h").value++; document.getElementById("x").value++; } </script> </head> <body> <form> <input type="hidden" name="hidden" id="h" value="5"/> <input type="text" id="x" value="5"/> <input name='clear' type='reset' id='clear' value='Clear'> </form> <button type="button" onclick="f()">Increment</button> <button type="button" onclick="alert(document.getElementById('h').value)"