Re: Script Execution via URL
| From: | CHAILLAN Nicolas | Date: | Sun, 01 Sep 2002 00:10:25 +0000 |
| Subject: | Re: Script Execution via URL | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114797@lists.php.net to get a copy of this message | ||
Note that ./? is better than ?
--
Merci de nous avoir choisi. - Thanks you for your choice.
Nicos - CHAILLAN Nicolas
nicos@worldakt.com
nicos@php.net
www.GroupAKT.com - Hébergement Group.
www.WorldAKT.com - Hébergement de sites Internet
"Sascha Braun" <saschabraun@gmx.de> a écrit dans le message de news:
005601c250f7$dcd7ce70$0f00a8c0@squitta...
Hi everybody,
i wrote a script which will be executed by HREF's. If a command is going to
be executed by a click on a link the page reloads itself and jumps
in the part of the script, which should be executed.
Normaly I wrote some like this for doing this:
echo '<a
href="'.$PHP_SELF.'?action=delete&id='.$arrResult['id'].'"
class="text01">';
but now in a very special case i forgot to write $PHP_SELF like this
<a href="?action=delete&id='.$arrResult['id'].'"
class="text01">
without knowing that I have forgotten to write this $PHP_SELF thing I
clicked on the Link and i did execute the Script, like i wanted it to.
Is it normal that it works so fine? Can I use this everytime I link on the
same page for script execusion?
Can I send Forms via an PHP Function like the submit() statement in
Javascript?
Have a nice day, and please answer.
Sascha Braun