Weiterleitung an Vorraussetzungen knüpfen | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Weiterleitung an Vorraussetzungen knüpfen

Hallo, ich bin aktuell dabei, eine Website, bzw. einen Online Shop mit HTML zu gestalten. Nachdem man die benötigten Felder ausgefüllt hat, soll man mit dem Button wirklich weiter geleitet werden können. Hat jemand eine Ahnung, wie das gehen könnte? Hier der Code: <html> <title>Shop - Formular</title> <head><br > <font color="#BDBDBD"><h2 align="center">Testseite</h2> </head> <body> <input type="text" name="Name" required/><br > <input type="text" name="E-Mail" required/><br > <input type="checkbox" name="sexualität" value="1" /> Frau <br > <input type="checkbox" name=sexualität" value="2" /> Mann <br > <input type="checkbox" name="sexualität" value="3" /> Andere <br > <font color="#000000">Aktuell auf Lager: <br > <progress min="0" max="100" value="100"></progress> <font color="#00FF00"><strong>100</strong> <font color ="#000000">von <font color="00FF00"><strong>100</strong> <br > <br > <input type="button" value="Weiter" onClick="parent.location='th-4.jpeg'"/> </body> </html>

18th Sep 2019, 6:47 PM
Titus
Titus - avatar
2 Answers
+ 3
i think <input type="submit" /> is the one you're looking for. also put all of the input inside form like this <form action="target_url"> put them here </form> target url is where you want to send the data to. also, i'm using translator and make out as much as i could from machine translation. sorry if this is not you're actually asking
18th Sep 2019, 7:24 PM
Taste
Taste - avatar
0
I have tried these things, but it doesn't work, the button doesn't send me longer to another Page an the text boxes doesn't need the input, sorry, for my English, but it is School English😂
19th Sep 2019, 6:12 AM
Titus
Titus - avatar