简体   繁体   中英

How do you find a url behind an html submit button?

This may be a stupid question as I am not familiar with html at all. How does one find a url behind an input type submit button.

<input type="submit" name="ctl00$content$search" value="Search" onclick="return      searchContinue(this);WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$content$search&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="ctl00_content_search">

I am just not familiar to find the required url to trigger the submit action. I am trying to write a script in python that will trigger the submit action.

Address is in <form action="some_url"> .

If there is no action then form use current page address.

The URl will be in <form action="/example.php">

Example:

<html>
<body>
<form action="/submit.php">
<input type="text" name="Name"></input>
<input type=submit"></input>
</body>
</html>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM