Ich versuche bei meiner Webseite ein automatischen Log-in zu machen, also dass man in zwei felder einmal den Username und ein Passwort eingibt und dann es einloggt und wenn man dann bei der Webseite auf ein Button klickt, führt dieser dich auf eine Webseite, wo die Log-in-Daten von eben eingibt und dich anmeldet, aber ich bekomme es nicht hin, eher gesagt, ich weiß nicht weiter.
Danke schon mal im vorraus!
LG
Der Container(im header):
<form>
<div class="container">
<label for="uname"><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="uname">
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw">
<button class="submit" type="submit">Einloggen</button>
</div>
</form>
Buttons(im header):
<button class="btnCloud" onclick="window.location.href = 'LINK';">Cloud</button>
<button class="btnWebuntis" onclick="window.location.href = 'https://(hier steht noch was aber das würde verraten wo meine Schule ist).webuntis.com/timetable-students-my/';">Webuntis</button>
<button class="btnSIS" onclick="window.location.href = 'LINK';">SIS</button>
<button class="btnWebmail" onclick="window.location.href = 'LINK';">Webmail</button>
<button class="btnMensa" onclick="window.location.href = 'LINK';">Mensa</button>
Style:
<style>
body{
background-color: #610303;
}
header{
background-color: #a43434;
padding: 10px;
}
.btnCloud {
background-color: #ff0000;
border: solid black;
border-width: 4px;
border-radius: .40em;
font-weight: bold;
font-size: 200%;
}
.btnCloud:hover {
background-color: #c50202;
cursor: pointer;
}
.btnWebuntis {
background-color: #ff0000;
border: solid black;
border-width: 4px;
border-radius: .40em;
font-weight: bold;
font-size: 200%;
}
.btnWebuntis:hover {
background-color: #c50202;
cursor: pointer;
}
.btnSIS {
background-color: #ff0000;
border: solid black;
border-width: 4px;
border-radius: .40em;
font-weight: bold;
font-size: 200%;
}
.btnSIS:hover {
background-color: #c50202;
cursor: pointer;
}
.btnWebmail {
background-color: #ff0000;
border: solid black;
border-width: 4px;
border-radius: .40em;
font-weight: bold;
font-size: 200%;
}
.btnWebmail:hover {
background-color: #c50202;
cursor: pointer;
}
.btnMensa {
background-color: #ff0000;
border: solid black;
border-width: 4px;
border-radius: .40em;
font-weight: bold;
font-size: 200%;
}
.btnMensa:hover {
background-color: #c50202;
cursor: pointer;
}
.container {
margin: 5px;
}
.submit {
background-color: #ff0000;
cursor: pointer;
font-weight: bold;
letter-spacing: 0.75px;
border-radius: .40em;
border:solid black;
}
.submit:hover {
background-color: #c50202;
}
</style>
Danke schon mal im vorraus!
LG
Der Container(im header):
<form>
<div class="container">
<label for="uname"><b>Username</b></label>
<input type="text" placeholder="Enter Username" name="uname">
<label for="psw"><b>Password</b></label>
<input type="password" placeholder="Enter Password" name="psw">
<button class="submit" type="submit">Einloggen</button>
</div>
</form>
Buttons(im header):
<button class="btnCloud" onclick="window.location.href = 'LINK';">Cloud</button>
<button class="btnWebuntis" onclick="window.location.href = 'https://(hier steht noch was aber das würde verraten wo meine Schule ist).webuntis.com/timetable-students-my/';">Webuntis</button>
<button class="btnSIS" onclick="window.location.href = 'LINK';">SIS</button>
<button class="btnWebmail" onclick="window.location.href = 'LINK';">Webmail</button>
<button class="btnMensa" onclick="window.location.href = 'LINK';">Mensa</button>
Style:
<style>
body{
background-color: #610303;
}
header{
background-color: #a43434;
padding: 10px;
}
.btnCloud {
background-color: #ff0000;
border: solid black;
border-width: 4px;
border-radius: .40em;
font-weight: bold;
font-size: 200%;
}
.btnCloud:hover {
background-color: #c50202;
cursor: pointer;
}
.btnWebuntis {
background-color: #ff0000;
border: solid black;
border-width: 4px;
border-radius: .40em;
font-weight: bold;
font-size: 200%;
}
.btnWebuntis:hover {
background-color: #c50202;
cursor: pointer;
}
.btnSIS {
background-color: #ff0000;
border: solid black;
border-width: 4px;
border-radius: .40em;
font-weight: bold;
font-size: 200%;
}
.btnSIS:hover {
background-color: #c50202;
cursor: pointer;
}
.btnWebmail {
background-color: #ff0000;
border: solid black;
border-width: 4px;
border-radius: .40em;
font-weight: bold;
font-size: 200%;
}
.btnWebmail:hover {
background-color: #c50202;
cursor: pointer;
}
.btnMensa {
background-color: #ff0000;
border: solid black;
border-width: 4px;
border-radius: .40em;
font-weight: bold;
font-size: 200%;
}
.btnMensa:hover {
background-color: #c50202;
cursor: pointer;
}
.container {
margin: 5px;
}
.submit {
background-color: #ff0000;
cursor: pointer;
font-weight: bold;
letter-spacing: 0.75px;
border-radius: .40em;
border:solid black;
}
.submit:hover {
background-color: #c50202;
}
</style>