I have been given some spaghetti code for a login page to fix.
We've got two input fields ID and Password.
Here's what I've been asked. So in terms of a user inputting their ID, I want to add '@email.com' onto the end.
Im assume placeholder="@email.com" would work if i could align it to the right, but I also need to it to be added into the POST method. So if the user entered 'ID123' it would post 'ID123@email.com'
Here is the form:
<form action="command.php" formmethod="post">
<div class="ID">User ID:<br><input name="ID" type="text"><br></div>
<div class="Pass"> Password:<br><input name="pwd" type="password"></div>
<input id="submit" type="submit" value="Sign In">
Can anyone help? Is it even possible?
</div>