Function name must be a string

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
DJJester
Forum Newbie
Posts: 8
Joined: Sun Apr 06, 2008 6:31 am

Function name must be a string

Post by DJJester »

Hi Group!

I'm sure many of you have come across this particular error but this would be my first and it's doing my head in... :banghead:

Error:
Fatal error: Function name must be a string in /home/logisof/public_html/testing/index.php on line 10 :dubious:

Line 10:
If ($isset($Page)) {

Code:
<?php
If ($isset($Page)) {
$questions = split(':', $_POST["QuestionID"]);
foreach ($questions as $id) {
$_SESSION["answers"] .= $id . ":" . $_POST['$id'] . "#";
}
If ($Page > 2) {
$to = "<email>";
$subject = "<subject>";
$txt = <answers>;
$header = "<from>";
mail($to,$subject,$txt,$headers);
echo "Thanks for participating. Your results have now been emailed.";
}
else {
writeQandA($Page);
echo '<A HREF=/"<link>?page=&' . ($Page + 1) . '\"';echo "Next Page</A>";
}
}
else {
echo "Welcome...";
}
function writeQandA($page)
{

Any assistance will be GREATLY appreciated. :)

Thanks,
Jess.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: Function name must be a string

Post by onion2k »

It's just isset, not $isset.
DJJester
Forum Newbie
Posts: 8
Joined: Sun Apr 06, 2008 6:31 am

Re: Function name must be a string

Post by DJJester »

Oh my god...

I can't believe I didn't see that... What a goof I feel like... :oops:

Thank you so much!
Jess.
Post Reply