Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #21721
| From | Gregor Kofler <usenet@gregorkofler.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: JS, PHP, and AJAX |
| Date | 2013-10-25 09:40 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <l4d7a2$9i4$1@dont-email.me> (permalink) |
| References | <6ae3bb3b-0d74-4c8f-969b-0e5a9e9a3e05@googlegroups.com> |
Am 25.10.2013 05:05, Kale meinte:
> So I am trying to make a fake amazon item checker and when I upload the code to my server I get a 500 internal server error. I have a feeling the error is in my JS but it could be in my PHP here is the code.
Most likely a *server* error will not be caused by a client side script.
[badly formatted, whitespaced and indented code snipped]
> </form>
> <?php
> header('Content-Type: text/xml');
You are outputting markup and sending a header afterwards? Weird.
> echo'We have '.$food'!';
This doesn't parse. You are missing a concatenation operator.
> elseif($food=='')
> echo'please enter a food';
> else
> echo'sorry we do not sell'.$food'!';
Here again.
Gregor
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
JS, PHP, and AJAX Kale <kalezwe@gmail.com> - 2013-10-24 20:05 -0700
Re: JS, PHP, and AJAX Gregor Kofler <usenet@gregorkofler.com> - 2013-10-25 09:40 +0200
Re: JS, PHP, and AJAX Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-25 14:44 +0000
Re: JS, PHP, and AJAX Kale <kalezwe@gmail.com> - 2013-10-25 16:29 -0700
Re: JS, PHP, and AJAX Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-10-26 02:04 +0200
Re: JS, PHP, and AJAX Kale <kalezwe@gmail.com> - 2013-10-25 20:30 -0700
Re: JS, PHP, and AJAX Gregor Kofler <usenet@gregorkofler.com> - 2013-10-26 10:40 +0200
Re: JS, PHP, and AJAX Denis McMahon <denismfmcmahon@gmail.com> - 2013-10-27 17:47 +0000
csiph-web