Jump to content

Recommended Posts

Here is what I'm trying to do, but I need to do it differnt...

<A HREF="<?php s_y_s_t_e_m('c:\links\logoff.exe');?>">Log Off System</a><br/>


I only want it to run when I click the links, but it runs when I load the page every time...

I understand that PHP parsed before HTML, but I expected it to behave differntly I guess...

Do I do a javascript onClick or something? (I Don't know JS)

I added the underscores because the site won't let me post code...
Link to comment
https://forums.phpfreaks.com/topic/5800-system/
Share on other sites

[!--quoteo(post=358352:date=Mar 25 2006, 02:55 PM:name=AV1611)--][div class=\'quotetop\']QUOTE(AV1611 @ Mar 25 2006, 02:55 PM) [snapback]358352[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Here is what I'm trying to do, but I need to do it differnt...

<A HREF="<?php s_y_s_t_e_m('c:\links\logoff.exe');?>">Log Off System</a><br/>
I only want it to run when I click the links, but it runs when I load the page every time...

I understand that PHP parsed before HTML, but I expected it to behave differntly I guess...

Do I do a javascript onClick or something? (I Don't know JS)

I added the underscores because the site won't let me post code...
[/quote]


I guess you could make it a button, and then use if(isset($_POST['submit']))...
Link to comment
https://forums.phpfreaks.com/topic/5800-system/#findComment-20712
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.