|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Why won't this code work in calendar?
I have been trying to get the code below to work in the calendar. It's supposed to validate an email and then tell the user that email addresses are not permitted. When I use it on a simple demo page, it works fine. But in the calendar I can't find a place to put it to make it work, or to not get an error. One of the errors is telling me that *eName* is an undefined index. In the demo page I get no such error. Any help here is appreciated. Thanks.
|
|
#2
|
|||
|
|||
|
RE: Why won't this code work in calendar?
Hi,
Anybody have any ideas on why this code won't work in the calendar's *ltw_classes.php* file? Any and all suggestions are welcome. Thanks. |
|
#3
|
||||||||
|
||||||||
|
RE: Why won't this code work in calendar?
-- top of file:
php Code:
--cut-- --where u need validation-- php Code:
|
|
#4
|
|||
|
|||
|
RE: Why won't this code work in calendar?
Sorry. Did not work. I got the same error in the "Add Event" popup ...
Warning: Undefined index: eName in /path/path/ltw_classes.php on line 819 which is where the if statement is. The function is at the very top of ltw_classes.php. Any other ideas are more than welcome. Thanks |
|
#6
|
|||
|
|||
|
RE: Why won't this code work in calendar?
Sorry again. 2 errors this time.
Parse error: parse error in /path/path/ltw_classes.php on line 819 -- which is *if (is_set($_POST['eName']) {* Fatal error: Cannot instantiate non-existent class: ltwcalendar in /path/path/calendar.php on line 145 Once again, any further help is appreciated. Thanks |
|
#7
|
|||
|
|||
|
RE: Why won't this code work in calendar?
|
|
#8
|
|||
|
|||
|
RE: Why won't this code work in calendar?
Eddie,
Thanks again... but ... it fixed the fatal error on the web page itself, now the Add Event popup, where the form is, has a fatal error. At least it's closer, I think. The error says: Fatal error: Call to undefined function: is_set() in /path/path/ltw_classes.php on line 820 line 820 is... if (is_set($_POST['eName'])) { |
|
#9
|
|||
|
|||
|
RE: Why won't this code work in calendar?
Is safe mode enabled? because i know that can screw things up
|
|
#10
|
|||
|
|||
|
RE: Why won't this code work in calendar?
Drevele,
My web host has the control over that one. Also not sure if I ask them to make that change will mess anything else up that works. But this script works perfectly fine on a demo page (same site and server), without the calendar files, so I am not sure if that would do the trick. I appreciate your help and suggestions. If you have any other ideas, please feel free. Thanks |
|
#11
|
|||
|
|||
|
RE: Why won't this code work in calendar?
Found the solution guys. Check out the thread in suggestions entitled "slashes" by crash3909. This problem was done at bottom of thread. Thanks again for all of your time, patience, and help.
|
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > Why won't this code work in calendar? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|