I may be wrong but to me the behavior is correct: calling a php script with
echo $_SERVER['PHP_SELF']; should return the name of that script.
-- Forwarded Message --
Date: Thursday, July 10, 2003 16:16:24 -0400
From: Dan Joseph [EMAIL PROTECTED]
To: andu [EMAIL PROTECTED], Dan Joseph [EMAIL PROTECTED]
Subject: RE: [PHP] OnClick problem
= Hi,
=
= Wow, you've got me stumped, that shouldn't be printing the previous at
= all. Could you forward tihs to the php list? I'm stumped.
=
= -Dan Joseph
=
= -Original Message-
= From: andu [mailto:[EMAIL PROTECTED]
= Sent: Thursday, July 10, 2003 3:58 PM
= To: Dan Joseph
= Subject: RE: [PHP] OnClick problem
=
=
=
=
= --On Thursday, July 10, 2003 15:40:16 -0400 Dan Joseph [EMAIL PROTECTED]
= wrote:
=
= Yeah, it would be:
=
= a href=? echo $_SERVER['PHP_SELF']; ?
=
= If that doesn't work, could you paste in a few lines of code?
=
= -Dan Joseph
=
= Thanks for helping me Dan. Here's the html created from bits and pieces
= with php. The ? echo $_SERVER['PHP_SELF']; ? simply inserts the name
= of previous page I came from, makes sense.
=
= html
= head
= titleEntries list/title
= meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
= link rel=stylesheet href=style.css type=text/css
= /head
= div id=head style=position:absolute; left:12px; top:13px;
= width:659px;
= height:87px; z-index:1; overflow: hidden class=headaddress
= book /div
= div id=Layer1 style=position:absolute; left:245px; top:187px;
= z-index:1; width: 278px; height: 197px; overflow: auto class=border
= form name=del method=get action=del_entry2.php
= table cellpadding=0 cellspacing=0 border=0
= tr
=td class=cel2
=input type=checkbox name=delete_me value=andu|novac
=
= /td
= td class=cel2a
= href=show_me.php?firstname=andulastname=novacandu novac/a/td
= /trtr
=td class=cel2
=input type=checkbox name=delete_me value=roberto|busto
= /td
= td class=cel2a
= href=show_me.php?firstname=robertolastname=bustoroberto
= busto/a/td /tr/table
= /form
=
= /divdiv id=Layer1 style=position:absolute; left:10px; top:439px;
= width:666px; height:25px; z-index:1
= table cellpadding=0 cellspacing=4 border=0 align=center
= tr
= td class=cel width=122a href=login.phplogin/a/td
= td class=cel width=122a href=add_acc.phpnew
= account/a/td
= td class=cel width=122a href=add_addr.phpadd
= address/a/td
= td class=cel width=122
=
= !--this is the problem part. When I click this link I want to send the
= form above. Notice the target is the name of the page which
= generated this
= one--
= a href=show_list.php onClick=document.del.submit();delete
= address/a/td
= !--end problem part--
=
= td class=cel width=122a href=show_list.phpshow
= addresses/a/td
=
= td class=cel width=122a href=lost_pass.phplost
= password/a/td
= /tr
= /table
= /div
= /body
= /html
=
= Regards, Andu Novac
=
=
=
-- End Forwarded Message --
Regards, Andu Novac
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php