0

How to anble submit button

how to link our website to submit button and how to add image in cording

17th May 2018, 8:46 AM
Vaghani Ishan
Vaghani Ishan - avatar
3 Réponses
+ 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.
17th May 2018, 8:58 AM
Ulisses Cruz
Ulisses Cruz - avatar
0
and how to upload image i can't upload image i am biggnner please help me
17th May 2018, 9:13 AM
Vaghani Ishan
Vaghani Ishan - avatar
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
17th May 2018, 9:33 AM
Ulisses Cruz
Ulisses Cruz - avatar