Add URL form validation
This commit is contained in:
parent
d04b23b379
commit
4e9af99bdd
|
@ -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="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="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="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 />
|
<label><select name="country" id="country"><?php get_countries($memary['4']); ?></select> Country</label><br />
|
||||||
<?php
|
<?php
|
||||||
if (isset($favefield) && $favefield == "yes") {
|
if (isset($favefield) && $favefield == "yes") {
|
||||||
|
|
|
@ -113,7 +113,7 @@ if ($result != NULL)
|
||||||
<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="email" 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="url" 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>
|
||||||
<option value="couldnt-join">Joining Problem</option>
|
<option value="couldnt-join">Joining Problem</option>
|
||||||
|
|
2
join.php
2
join.php
|
@ -194,7 +194,7 @@ if (!isset($_POST['submit']) || $show_form == true) {
|
||||||
<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 />
|
||||||
<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 />
|
<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
|
<?php
|
||||||
if (isset($favefield) && $favefield == "yes") {
|
if (isset($favefield) && $favefield == "yes") {
|
||||||
|
|
|
@ -158,7 +158,7 @@ if (!isset($_POST['submit']) || $show_form == true) {
|
||||||
<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 />
|
||||||
<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 />
|
<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
|
<?php
|
||||||
if (isset($captcha) && $captcha == "yes") {
|
if (isset($captcha) && $captcha == "yes") {
|
||||||
|
|
Loading…
Reference in New Issue