Add HTML required attribute to required form fields
This commit is contained in:
parent
84c18e9ba2
commit
a599935b26
|
@ -111,16 +111,16 @@ if ($result != NULL)
|
|||
<p><input type="hidden" name="nojs" id="nojs" /></p>
|
||||
</noscript>
|
||||
<p>
|
||||
<label for="name">Name *</label><br /> <input type="text" id="name" name="name" value="<?php get_data("name"); ?>" /> <br />
|
||||
<label for="email">E-mail *</label><br /> <input type="text" id="email" name="email" value="<?php get_data("email"); ?>" /> <br />
|
||||
<label for="url">Website</label><br /> <input type="text" id="url" name="url" value="http://" /> <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="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">
|
||||
<option value="affiliate-request">Affiliate Request</option>
|
||||
<option value="couldnt-join">Joining Problem</option>
|
||||
<option value="button-donation">Button Donation</option>
|
||||
<option value="other">Other</option>
|
||||
</select> <br />
|
||||
<label for="comments">Comments *</label><br /> <textarea name="comments" id="comments" rows="3" cols="25"><?php get_data("comments"); ?></textarea><br />
|
||||
<label for="comments">Comments *</label><br /> <textarea name="comments" id="comments" rows="3" cols="25" required><?php get_data("comments"); ?></textarea><br />
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" name="submit" id="submit" value="Send" <?php if (isset($disable) && $disable === true) echo ' disabled="disabled"'; ?> />
|
||||
|
|
6
join.php
6
join.php
|
@ -189,13 +189,13 @@ if (!isset($_POST['submit']) || $show_form == true) {
|
|||
?>
|
||||
|
||||
<form action="join.php" method="post"><p>
|
||||
<label>Name *</label><br /> <input type="text" id="name" name="name" value="<?php get_data("name"); ?>" /> <br />
|
||||
<label>E-mail *</label><br /> <input type="text" id="email" name="email" value="<?php get_data("email"); ?>" /> <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>Display E-mail?</label><br />
|
||||
<input type="radio" id="dispemailyes" name="dispemail" value="yes" checked="checked" /> Yes
|
||||
<input type="radio" id="dispemailno" name="dispemail" value="no" /> No<br />
|
||||
<label>Website</label><br /> <input type="text" id="url" name="url" value="<?php get_data("url"); ?>" /> <br />
|
||||
<label>Country *</label><br /> <select name="country" id="country"><option value="null">Please select a country:</option><?php get_countries($country); ?></select> <br />
|
||||
<label>Country *</label><br /> <select name="country" id="country" required><option value="null">Please select a country:</option><?php get_countries($country); ?></select> <br />
|
||||
<?php
|
||||
if (isset($favefield) && $favefield == "yes") {
|
||||
?>
|
||||
|
|
|
@ -152,14 +152,14 @@ if (!isset($_POST['submit']) || $show_form == true) {
|
|||
?>
|
||||
|
||||
<form action="update.php" method="post"><p>
|
||||
<label>Name *</label><br /> <input type="text" id="name" name="name" /> <br />
|
||||
<label>Old E-mail *</label><br /> <input type="text" id="email" name="email" /> <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>New E-mail</label><br /> <input type="text" id="newemail" name="newemail" /> <br />
|
||||
<label>Display E-mail?</label><br />
|
||||
<input type="radio" id="dispemailyes" name="dispemail" value="yes" checked="checked" /> Yes
|
||||
<input type="radio" id="dispemailno" name="dispemail" value="no" /> No<br />
|
||||
<label>New Website?</label><br /> <input type="text" id="newurl" name="newurl" value="http://" /> <br />
|
||||
<label>Country *</label><br /> <select name="country" id="country"><option value="null">Please select a country:</option><?php get_countries("null"); ?></select> <br />
|
||||
<label>Country *</label><br /> <select name="country" id="country" required><option value="null">Please select a country:</option><?php get_countries("null"); ?></select> <br />
|
||||
<?php
|
||||
if (isset($captcha) && $captcha == "yes") {
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue