It is currently Thu Mar 28, 2024 9:02 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: php calculator program problems
PostPosted: Fri Mar 04, 2005 5:32 am 
Noobie
Noobie

Joined: Sun Feb 20, 2005 11:43 pm
Posts: 11
Code:
$hist = $_POST['hist'];
$calc = $_POST['calc'];
eval("\$result = $calc;");
$hist = $hist . $calc. " = " . $result . "<br>";
echo $hist ;


should work, but doesn't something wrong in the eval function parameter, but the format SHOULD be right. Just thinking it may be yet another of your weird security things keeping the server from allowing this. Is this the case?

_________________
GAME
http://parker.aldronan.com


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 04, 2005 10:01 am 
Site Admin
Site Admin

Joined: Fri Feb 11, 2005 7:43 am
Posts: 1818
Location: 100WebSpace's Headquarters
I don't think it has anything to do with our "weird security things".

_________________
Read the F.A.Q. before asking a question!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
100WebSpace © 2011