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

Posted by Rik on 03/08/07 10:51

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=3D"#Find" =

> onclick=3D"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
-- =

Rik Wasmus
Posted on Usenet, not any forum you might see this in.
Ask Smart Questions: http://tinyurl.com/anel

 

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

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