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

2006-10-11 Thread Andrei
Make sure your $dir variable isn't containing the path to your file from your OS file system. This should be an apache (or whatever) path (an URL). Andy [EMAIL PROTECTED] wrote: Richard Lynch wrote: On Sun, October 8, 2006 6:53 pm, [EMAIL PROTECTED] wrote: How to apply the following

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

2006-10-10 Thread edwardspl
Richard Lynch wrote: On Sun, October 8, 2006 6:53 pm, [EMAIL PROTECTED] wrote: How to apply the following function with php ? a href=javascript:popup('index.htm') Test /a If you're new to PHP, be a minimalist, and pull out PHP only when you absolutely have to: a

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

2006-10-10 Thread clive
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 :

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

2006-10-10 Thread edwardspl
clive wrote: 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

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

2006-10-10 Thread Richard Lynch
On Tue, October 10, 2006 7:57 am, [EMAIL PROTECTED] wrote: 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

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

2006-10-09 Thread edwardspl
Hello, Sorry... If the hyper link is : a href=javascript:popup('/$dir/index.htm') Test /a So, how to apply the echo tag for it ? Remark: $dir is php variable... Edward. J R wrote: echo 'a href=javascript:popup(\'index.htm\') Test /a'; On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED]

[PHP] Re: [BULK] Re: [PHP] Apply the hyper link ( javascript functon ) with php

2006-10-09 Thread clive
[EMAIL PROTECTED] wrote: Hello, Sorry... If the hyper link is : a href=javascript:popup('/$dir/index.htm') Test /a you want to use double quotes echo ; instead of single quotes echo ' '; the double quotes will parse any variables it finds, where as the single quotes will simply just echo

Re: [PHP] Re: [BULK] Re: [PHP] Apply the hyper link ( javascript functon ) with php

2006-10-09 Thread edwardspl
Hello Clive, Would you mind to help to modify the hyper link with php ( apply echo tag ) ? Sorry... I don't quite to know the php command Many thank for your help ! Edward. clive wrote: [EMAIL PROTECTED] wrote: Hello, Sorry... If the hyper link is : a

Re: [PHP] Re: [BULK] Re: [PHP] Apply the hyper link ( javascript functon ) with php

2006-10-09 Thread edwardspl
Hello Clive, I just modified the php program code : echo 'a href=javascript:popup(\'/$dir/index.htm\') Test /a'; But the page is error result (Display on the menu bar)! Edward. clive wrote: [EMAIL PROTECTED] wrote: Hello, Sorry... If the hyper link is : a

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

2006-10-09 Thread Richard Lynch
On Sun, October 8, 2006 6:53 pm, [EMAIL PROTECTED] wrote: How to apply the following function with php ? a href=javascript:popup('index.htm') Test /a If you're new to PHP, be a minimalist, and pull out PHP only when you absolutely have to: a href=javascript:popup('?php echo $dir?/index.htm')

[PHP] Apply the hyper link ( javascript functon ) with php

2006-10-08 Thread edwardspl
Dear All, How to apply the following function with php ? a href=javascript:popup('index.htm') Test /a Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2006-10-08 Thread J R
echo 'a href=javascript:popup(\'index.htm\') Test /a'; On 10/9/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear All, How to apply the following function with php ? a href=javascript:popup('index.htm') Test /a Edward. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,