Welcome to Geeklog, Anonymous Wednesday, November 27 2024 @ 11:48 am EST
Geeklog Forums
email notification problem
Jordan
Anonymous
i've tried editing the forms for the event submissions i've added email phone # and # of kids and have deleted city adress 1 and 2 zip code and all day event.. but now that i have tried to fix the email notification so i get all that information in my emails. i don't... so i've tried edditing the submit.php under email notification but its giving me an error....
Parse error: parse error in /home/virtual/site55/fst/var/www/html/geeklog/public_html/submit.php on line 402
can anyone tell me what i'm doing wrong...and how to fix it
case $_TABLES['eventsubmission']:
case $_TABLES['events']:
$title = stripslashes ($A['title']);
$description = stripslashes ($A['description']);
$phone# = stripslashes ($A['phone#']);
$email = stripslashes ($A ['email']);
$#ofkids = stripslashes ($A['#ofkids']);
$mailbody = "$LANG09[16]: $titlen"
. "$LANG09[17]: " . strftime ($_CONF['date'],
strtotime ($A['datestart'] . ' ' . $A['timestart']));
if ($A['allday']) {
$mailbody .= ' (' . $LANG30[26] . ')';
}
$mailbody .= "n";
if (!empty ($A['url']) && ($A['url'] != 'http://')) {
$mailbody .= "$LANG09[33]: n";
}
$mailbody .= "n" . $phone# . "nn";
$mailbody .= "n" . $email . "nn";
$mailbody .= "n" . $#ofkids . "nn";
$mailbody .= "n" . $description . "nn";
if ($table == $_TABLES['eventsubmission'])
Parse error: parse error in /home/virtual/site55/fst/var/www/html/geeklog/public_html/submit.php on line 402
can anyone tell me what i'm doing wrong...and how to fix it
case $_TABLES['eventsubmission']:
case $_TABLES['events']:
$title = stripslashes ($A['title']);
$description = stripslashes ($A['description']);
$phone# = stripslashes ($A['phone#']);
$email = stripslashes ($A ['email']);
$#ofkids = stripslashes ($A['#ofkids']);
$mailbody = "$LANG09[16]: $titlen"
. "$LANG09[17]: " . strftime ($_CONF['date'],
strtotime ($A['datestart'] . ' ' . $A['timestart']));
if ($A['allday']) {
$mailbody .= ' (' . $LANG30[26] . ')';
}
$mailbody .= "n";
if (!empty ($A['url']) && ($A['url'] != 'http://')) {
$mailbody .= "$LANG09[33]: n";
}
$mailbody .= "n" . $phone# . "nn";
$mailbody .= "n" . $email . "nn";
$mailbody .= "n" . $#ofkids . "nn";
$mailbody .= "n" . $description . "nn";
if ($table == $_TABLES['eventsubmission'])
7
6
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Jordan: Parse error: parse error in /home/virtual/site55/fst/var/www/html/geeklog/public_html/submit.php on line 402
Well, it's hard for us to say without knowing which line is supposed to be line 402.
However, this doesn't look right:
Quote by Jordan:
$mailbody .= "n" . $phone# . "nn";
$mailbody .= "n" . $email . "nn";
$mailbody .= "n" . $#ofkids . "nn";
$mailbody .= "n" . $phone# . "nn";
$mailbody .= "n" . $email . "nn";
$mailbody .= "n" . $#ofkids . "nn";
The '#' is not a valid character in variable names. And I would avoid it in field names ($A['phone#']), too (does that even work? I'm not sure ...).
bye, Dirk
8
6
Quote
All times are EST. The time is now 11:48 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content