Ask coding questions

← Back to all posts
HTML submitting your <form> to a URL? Or Java
UltimatePython

Hi, does anyone know this? How to submit form data to a URL? Or in Java. Doesn't have to be an URL, it can be anything that stores real data in.

Answered by xfinnbar [earned 5 cycles]
View Answer
Voters
UltimatePython
Comments
hotnewtop
xfinnbar

Add the action attribute to specify a URL. For example, take this form:

Will send the following request to this URL when Hello is passed to the text input:
your repl url/page?a-text-input=Hello

P.S. Java (server and desktop focused general purpose language) is not JavaScript (browser scripting language)

UltimatePython

@xfinnbar Ok thank you!

UltimatePython

@xfinnbar Then I'll mark it as answered!