Add URL form validation

This commit is contained in:
Helen Chong 2024-06-29 18:23:26 +08:00
parent d04b23b379
commit 4e9af99bdd
4 changed files with 4 additions and 4 deletions

View File

@ -253,7 +253,7 @@ if (isset($_COOKIE['bellabuffs'])) {
<label><input type="text" id="email" name="email" value="<?php echo fixEmail($memary['1']);?>" /> E-mail</label><br />
<label><input type="radio" id="dispemailyes" name="dispemail" value="yes" <?php if ($memary['2'] == "yes") { echo "checked=\"checked\""; } ?> /> Yes</label>
<label><input type="radio" id="dispemailno" name="dispemail" value="no" <?php if ($memary['2'] == "no") { echo "checked=\"checked\""; } ?> /> No</label> Display E-mail?<br />
<label><input type="text" id="url" name="url" value="<?php echo $memary['3'];?>" /> Website</label><br />
<label><input type="url" id="url" name="url" value="<?php echo $memary['3'];?>" /> Website</label><br />
<label><select name="country" id="country"><?php get_countries($memary['4']); ?></select> Country</label><br />
<?php
if (isset($favefield) && $favefield == "yes") {

View File

@ -113,7 +113,7 @@ if ($result != NULL)
<p>
<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="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="url" 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>

View File

@ -194,7 +194,7 @@ if (!isset($_POST['submit']) || $show_form == true) {
<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>Website</label><br /> <input type="url" id="url" name="url" value="<?php get_data("url"); ?>" /> <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") {

View File

@ -158,7 +158,7 @@ if (!isset($_POST['submit']) || $show_form == true) {
<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>New Website?</label><br /> <input type="url" id="newurl" name="newurl" value="http://" /> <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") {