Current location: Hot Scripts Forums » Programming Languages » PHP » PHP Form - Button that executes - Need Help


PHP Form - Button that executes - Need Help

Reply
  #1 (permalink)  
Old 02-05-05, 03:36 PM
Proton Proton is offline
Newbie Coder
 
Join Date: Feb 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
PHP Form - Button that executes - Need Help

I currently have this 1 link that, if visited, it reboots my server. I'm trying to make a php page with a button on there so when I hit the button, it executes the link to reboot my machine but instead of being redirected to that link after clicking the button, I'd like to remain on the page.

Is there some kind of special form command to do that so I don't get redirected to the link, I just stay on the same site but my machine is still rebooted?

Can someone provide me with a sample code to do so, using http://blalblahblah.com/reboot/xx.xx.xxx.xx as the reboot link?

Thanks

Also, is there a way to make a certain page only accessible from 1 IP?
Reply With Quote
  #2 (permalink)  
Old 02-05-05, 10:27 PM
Zentri Zentri is offline
Newbie Coder
 
Join Date: Feb 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
when you form post something, it will redirect you to that page where the form is processed
eg. http://asd.com/login.php, the form will redirect you there.
Maybe you could use a popup window with javascript, so that when you click the link, it executes the script then closes the popup.

Accessible by 1 ip, you could add the tag
if($_SERVER['REMOTE_ADDR'] != "your ip here"){die();}
__________________
Zentri - Free Opensource Web Portal
http://zentri.com
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 profitable script sites for sale cms-master.com General Advertisements 3 07-03-07 10:17 AM
checkCheckboxGroup broken after form consolidation ski_woman JavaScript 0 01-12-05 11:00 AM
Form Submission, PHP Coding Problem kibby67 PHP 3 12-02-04 01:13 PM
Php Form + mysql + display data sent needed TheRaider Script Requests 3 10-07-04 01:30 AM
PHP Triad/Upload form eddyvlad PHP 6 10-06-03 11:17 PM


All times are GMT -5. The time now is 05:28 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.