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
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
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 :
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
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
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]
[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
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
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
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')
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
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,
12 matches
Mail list logo