You are currently viewing the BOOK: JavaScript 24-Hour Trainer section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
Hello,
I am using Dreamweaver CS5 and I have my own server with rackspace. I cant seem to get the code to work on this chapter (all the other chapters have worked fine until now). The Html loads, but no input is returned when hit submit.
It as if the scripts are not attached or something. I copied and pasted all the code and uploaded. It still wont work.
One thing I have noticed is that in Dreamweaver you can choose ASP JavaScript or (regular) JavaScript. I always use the nonASP JavaScript. Does this have an effect or no?
i would post the link so that you can view the source code but am not to sure that is a good idea security wise. :)
Any ideas?
Thanks for your time
Last edited by ZanderFly; March 12th, 2012 at 06:44 PM.
The PHP is failing on the call to json_encode(). The exact error is:
HTML Code:
<b>Fatal error</b>: Call to undefined function: json_encode() in <b>/var/www/vhosts/webbocrats.com/httpdocs/lesson35/car_dealership.php</b> on line <b>74</b><br />
The json_encode() function was added in PHP 5.2.0. So if you have an earlier version of PHP running on your server, you'll need to include another PHP file that parses JSON.