cvs: phpweb / submit-event.php
| From: | Jacques Marneweck | Date: | Wed, 14 May 2003 01:57:31 +0000 |
| Subject: | cvs: phpweb / submit-event.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-17608@lists.php.net to get a copy of this message | ||
jacques Tue May 13 21:57:31 2003 EDT
Modified files:
/phpweb submit-event.php
Log:
* Only allow the event to be submitted if there are no errors, else
Preview still is there. Should help with people who click the wrong
button when they still need to fix things.
--jm
Index: phpweb/submit-event.php
diff -u phpweb/submit-event.php:1.16 phpweb/submit-event.php:1.17
--- phpweb/submit-event.php:1.16 Tue May 13 21:43:47 2003
+++ phpweb/submit-event.php Tue May 13 21:57:31 2003
@@ -227,7 +227,7 @@
<tr>
<td align="center" colspan="2">
<input type="submit" name="action" value="Preview" />
-<?php if (isset($in) && $process) {?>
+<?php if (isset($in) && $process && !$errors) {?>
<input type="submit" name="action" value="Submit" />
<?php }?>
</td>