RE: [PHP] OnClick problem (fwd)

From: Date: Thu, 10 Jul 2003 20:13:13 +0000
Subject: RE: [PHP] OnClick problem (fwd)
Groups: php.general 
Request: Send a blank email to php-general+get-154792@lists.php.net to get a copy of this message
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 <djoseph@duhq.us> To: andu <toma@cloud9.net>, Dan Joseph <djoseph@duhq.us> 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:toma@cloud9.net] =>> 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 <djoseph@duhq.us> =>> 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> =>> <title>Entries 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="head">address =>> 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="cel2"><a
=>> href="show_me.php?firstname=andu&lastname=novac">andu novac</a></td>
=>>       </tr><tr>
=>>    <td class="cel2">
=>>        <input type="checkbox" name="delete_me" value="roberto|busto">
=>>         </td>
=>>         <td class="cel2"><a
=>> href="show_me.php?firstname=roberto&lastname=busto">roberto =>> busto</a></td> </tr></table> =>> </form> =>> =>> </div><div 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="122"><a href="login.php">login</a></td>
=>>       <td class="cel" width="122"><a href="add_acc.php">new
=>> account</a></td>
=>>       <td class="cel" width="122"><a href="add_addr.php">add
=>> 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="122"><a href="show_list.php">show
=>> addresses</a></td> =>>
=>>       <td class="cel" width="122"><a href="lost_pass.php">lost
=>> password</a></td>
=>>     </tr>
=>> </table> =>> </div> =>> </body> =>> </html> =>> =>> Regards, Andu Novac =>> => => ---------- End Forwarded Message ---------- Regards, Andu Novac

« previous php.general (#154792) next »