You are here: Re: ajax not executing php « PHP Programming Language « IT news, forums, messages
Re: ajax not executing php

Posted by Jon Slaughter on 03/08/07 12:34

"Rik" <luiheidsgoeroe@hotmail.com> wrote in message
news:op.tou9ryviqnv3q9@misant...
Jon Slaughter <Jon_Slaughter@Hotmail.com> wrote:

> When a user clicks a link I have it open up a file in a div using ajax.
>
> <a href="#Find"
> onclick="javascript:jah('Find.html','content');">Find</a><br
> />
>
> Where Find.html is an html file on the server.

> <html>
> <body>
> Find
> <?php
> echo "Hello";
> ?>
> end Find
> </body>
> </html>
>
> I get Find and end Find but not hello.

Probably you do, it's just hidden in the HTML source as raw PHP-code,
because your server isn;t set up to parse *.html for php-code (as ist
should be.

Rename your file & links Find.php
--

Oh, I see. Wasn't thinking.

Thanks,
Jon

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация