cvs: phpweb / submit-event.php
| From: | jim winstead | Date: | Fri, 17 May 2002 22:12:08 +0000 |
| Subject: | cvs: phpweb / submit-event.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-10315@lists.php.net to get a copy of this message | ||
jimw Fri May 17 18:12:08 2002 EDT
Modified files:
/phpweb submit-event.php
Log:
require url, rearrange form a bit, explain what email is used for
Index: phpweb/submit-event.php
diff -u phpweb/submit-event.php:1.10 phpweb/submit-event.php:1.11
--- phpweb/submit-event.php:1.10 Thu May 2 15:44:50 2002
+++ phpweb/submit-event.php Fri May 17 18:12:06 2002
@@ -33,7 +33,10 @@
}
$in['url'] = trim($in['url']);
- if ($in['url'] && !preg_match('/^\w+:/',$in['url'])) {
+ if (!$in['url']) {
+ $errors[] = "You must supply a URL with more information about the event.";
+ }
+ elseif (!preg_match('/^\w+:/',$in['url'])) {
$errors[] = "The URL you supplied was incomplete.";
}
@@ -157,6 +160,10 @@
<td><input type="text" name="in[sdesc]" value="<?php echo
htmlentities($in['sdesc'])?>" size="32" maxlength="32"
/></td>
</tr>
<tr>
+ <th>URL</th>
+ <td><input type="text" name="in[url]" size="40"
maxlength="128" value="<?php echo htmlentities($in['url'])?>"
/></td>
+ </tr>
+ <tr>
<th>Country</th>
<td>
<select name="in[country]" width="30">
@@ -179,10 +186,9 @@
<tr>
<th>Email</th>
<td><input type="text" name="in[email]" size="40"
maxlength="128" value="<?php echo htmlentities($in['email'])?>"
/></td>
- </tr>
<tr>
- <th>URL</th>
- <td><input type="text" name="in[url]" size="40"
maxlength="128" value="<?php echo htmlentities($in['url'])?>"
/></td>
+ <th> </th>
+ <td><small>This email address is only used to contact you about the listing, it will
not displayed along with the listing.</small></td>
</tr>
<tr>
<th colspan="2" align="left">Long Description</th>