Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
How to anble submit button
how to link our website to submit button and how to add image in cording
3 Antworten
+ 2
Vaghani Ishan
I did not understand your question very well.
If you are asking how to have the sumbit button send the data to a specific web site:
<form method='POST' action='url/to/the/web/site'>
...<!-- the other stuff -->
<input type='submit' value='Submit'>
</form>
The importan part is the 'action' attribute in the <form> tag it specifies where to send the data.
0
and how to upload image i can't upload image i am biggnner please help me
0
Here is an example:
<!DOCTYPE html>
<html>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
Select image to upload:
<input type="file" name="fileToUpload"id="fileToUpload">
<input type="submit" value="Upload Image"name="submit">
</form>
</body>
</html>
You should add the enctype attribute to the <form> tag.
NOTE:
for more information check this link:
https://www.w3schools.com/php/php_file_upload.asp