Use email type attribute for email form fields

This commit is contained in:
Helen Chong 2024-06-29 18:19:12 +08:00
parent 6f72f9e07e
commit 3c519c6e53
4 changed files with 7 additions and 7 deletions

View File

@ -730,7 +730,7 @@ if (isset($_COOKIE['bellabuffs'])) {
?> ?>
<form method="post" action="?ap=add_affiliate_process" enctype="multipart/form-data"><p> <form method="post" action="?ap=add_affiliate_process" enctype="multipart/form-data"><p>
<label><input type="text" name="affName" id="affName" /> Affiliate Name</label><br /> <label><input type="text" name="affName" id="affName" /> Affiliate Name</label><br />
<label><input type="text" name="affEmail" id="affEmail" /> Affiliate E-mail</label><br /> <label><input type="email" name="affEmail" id="affEmail" /> Affiliate E-mail</label><br />
<label><input type="text" name="affURL" id="affURL" /> Affiliate URL</label><br /> <label><input type="text" name="affURL" id="affURL" /> Affiliate URL</label><br />
<label><input type="text" name="affSitename" id="affSitename" /> Affiliate Site Name</label><br /> <label><input type="text" name="affSitename" id="affSitename" /> Affiliate Site Name</label><br />
<label><input type="file" name="affButton" id="affButton" /> Affiliate Button</label><br /> <label><input type="file" name="affButton" id="affButton" /> Affiliate Button</label><br />
@ -845,7 +845,7 @@ if (isset($_COOKIE['bellabuffs'])) {
<img src="buttons/<?php echo $affArray['0'];?>" style="vertical-align: middle;" alt="" /> Old Affiliate Button<br /> <img src="buttons/<?php echo $affArray['0'];?>" style="vertical-align: middle;" alt="" /> Old Affiliate Button<br />
<label><input type="file" name="newbutton" id="newbutton" /> New Affiliate Button</label><br /> <label><input type="file" name="newbutton" id="newbutton" /> New Affiliate Button</label><br />
<label><input type="text" name="affName" id="affName" value="<?php echo $affArray['1'];?>" /> Affiliate Name</label><br /> <label><input type="text" name="affName" id="affName" value="<?php echo $affArray['1'];?>" /> Affiliate Name</label><br />
<label><input type="text" name="affEmail" id="affEmail" value="<?php echo fixEmail($affArray['2']);?>" /> Affiliate E-mail</label><br /> <label><input type="email" name="affEmail" id="affEmail" value="<?php echo fixEmail($affArray['2']);?>" /> Affiliate E-mail</label><br />
<label><input type="text" name="affURL" id="affURL" value="<?php echo $affArray['3'];?>" /> Affiliate URL</label><br /> <label><input type="text" name="affURL" id="affURL" value="<?php echo $affArray['3'];?>" /> Affiliate URL</label><br />
<label><input type="text" name="affSitename" id="affSitename" value="<?php echo $affArray['4'];?>" /> Affiliate Site Name</label><br /> <label><input type="text" name="affSitename" id="affSitename" value="<?php echo $affArray['4'];?>" /> Affiliate Site Name</label><br />
<input type="submit" name="submit" id="submit" value="Edit" /> <input type="submit" name="submit" id="submit" value="Edit" />
@ -1039,7 +1039,7 @@ if (isset($_COOKIE['bellabuffs'])) {
?> ?>
<p>Search for member by e-mail address:</p> <p>Search for member by e-mail address:</p>
<form action="admin.php?ap=search&amp;p=process" method="post"><p> <form action="admin.php?ap=search&amp;p=process" method="post"><p>
<label><input type="text" name="email" id="email" /> E-mail</label><br /> <label><input type="email" name="email" id="email" /> E-mail</label><br />
<input type="submit" name="submit" id="submit" value="Search" /> <input type="submit" name="submit" id="submit" value="Search" />
</form> </form>
<?php <?php

View File

@ -112,7 +112,7 @@ if ($result != NULL)
</noscript> </noscript>
<p> <p>
<label for="name">Name *</label><br /> <input type="text" id="name" name="name" value="<?php get_data("name"); ?>" required /> <br /> <label for="name">Name *</label><br /> <input type="text" id="name" name="name" value="<?php get_data("name"); ?>" required /> <br />
<label for="email">E-mail *</label><br /> <input type="text" id="email" name="email" value="<?php get_data("email"); ?>" required /> <br /> <label for="email">E-mail *</label><br /> <input type="email" id="email" name="email" value="<?php get_data("email"); ?>" required /> <br />
<label for="url">Website</label><br /> <input type="text" id="url" name="url" placeholder="http://" /> <br /> <label for="url">Website</label><br /> <input type="text" id="url" name="url" placeholder="http://" /> <br />
<label for="reason">Reason for contact</label><br /> <select name="reason" id="reason"> <label for="reason">Reason for contact</label><br /> <select name="reason" id="reason">
<option value="affiliate-request">Affiliate Request</option> <option value="affiliate-request">Affiliate Request</option>

View File

@ -190,7 +190,7 @@ if (!isset($_POST['submit']) || $show_form == true) {
<form action="join.php" method="post"><p> <form action="join.php" method="post"><p>
<label>Name *</label><br /> <input type="text" id="name" name="name" value="<?php get_data("name"); ?>" required /> <br /> <label>Name *</label><br /> <input type="text" id="name" name="name" value="<?php get_data("name"); ?>" required /> <br />
<label>E-mail *</label><br /> <input type="text" id="email" name="email" value="<?php get_data("email"); ?>" required /> <br /> <label>E-mail *</label><br /> <input type="email" id="email" name="email" value="<?php get_data("email"); ?>" required /> <br />
<label>Display E-mail?</label><br /> <label>Display E-mail?</label><br />
<input type="radio" id="dispemailyes" name="dispemail" value="yes" checked="checked" /> Yes <input type="radio" id="dispemailyes" name="dispemail" value="yes" checked="checked" /> Yes
<input type="radio" id="dispemailno" name="dispemail" value="no" /> No<br /> <input type="radio" id="dispemailno" name="dispemail" value="no" /> No<br />

View File

@ -153,8 +153,8 @@ if (!isset($_POST['submit']) || $show_form == true) {
<form action="update.php" method="post"><p> <form action="update.php" method="post"><p>
<label>Name *</label><br /> <input type="text" id="name" name="name" required /> <br /> <label>Name *</label><br /> <input type="text" id="name" name="name" required /> <br />
<label>Old E-mail *</label><br /> <input type="text" id="email" name="email" required /> <br /> <label>Old E-mail *</label><br /> <input type="email" id="email" name="email" required /> <br />
<label>New E-mail</label><br /> <input type="text" id="newemail" name="newemail" /> <br /> <label>New E-mail</label><br /> <input type="email" id="newemail" name="newemail" /> <br />
<label>Display E-mail?</label><br /> <label>Display E-mail?</label><br />
<input type="radio" id="dispemailyes" name="dispemail" value="yes" checked="checked" /> Yes <input type="radio" id="dispemailyes" name="dispemail" value="yes" checked="checked" /> Yes
<input type="radio" id="dispemailno" name="dispemail" value="no" /> No<br /> <input type="radio" id="dispemailno" name="dispemail" value="no" /> No<br />