Re: Apply the hyper link ( javascript functon ) with php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Hello to you,

php web page ( test.php ) :

<script language="javascript" type="text/javascript">
<!--
function popup(page)
{
window.open(page,title, "height=100,width=100");
}
// -->
</script>

<a href="javascript:popup('./<?php echo $dir?>/index.htm')"> Test </a>

Result : "homepage error"

Web Server error log :

[Tue Oct 10 18:07:36 2006] [error] [client 202.108.22.70] File does not
exist: /home/web/index.htm
[Tue Oct 10 18:10:12 2006] [error] [client 61.135.145.217] File does not
exist: /home/web/test2004.htm
[Tue Oct 10 18:10:14 2006] [error] [client 61.135.145.217] File does not
exist: /home/web/readme.htm

Please help, thanks !

Edward.

does $dir have a value ?

probably nothing to do with php, does your page work if there was no php code in it and if you replaced
<?php echo $dir?> with a page url.

and go through some tutorial on php !!!

--
Regards,

Clive

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux