I have a webpage that automatically submit a value "val" in the input field whenever the page is loaded:
<form method="post" action="website.com/xxxx">
<input type="text" name="t" style="width:250px" value="val">
<button type="submit"><p>Submit<img src="submit.png" style="width:32px;vertical-align:middle"></p></button>
</form>
<SCRIPT LANGUAGE="JavaScript">document.forms[0].submit();</SCRIPT>
How do I make it automatically replace "val" with a non repeating variable chosen from a list(a txt file or within the html code)? Like for example I want to submit
val1, val2, val3 and so on.. Everytime the page is loaded it choose one value from that list and then keep reloading until it submitted all the values without repeating any value.
Also, how would I make it retrieve the values from an external source like a txt file?
How would I also embed the values into the html code so it wouldn't need to retrieve the values from a file?
Edit: Ok I found out that "due to security restrictions, client-side scripts may not be allowed to access the user's computer beyond the web browser application" so I want to just embed the list of values into the html code.