Jump to content

bishop2001

New Members
  • Posts

    7
  • Joined

  • Last visited

bishop2001's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. greetings, how do i get the value of a variable from a form. So for example <option value="<? echo $TODAY ?>"><? echo $TODAY ?></option> my drop down menu will show me today's data, but when i select it and click submit the value in value is not getting interpolated.
  2. Greetings, how can i capture the choice that a user has selected from my drop down menu: <form name="jumpp"> <select name="menu"> <option selected disabled hidden value=''></option>" <option value="NewYork">New York</option> <option value="London">London</option> </select> </form> i tried the following with no luck. Welcome <?php echo $_POST["menu"]; ?> thanks
  3. hi i am trying to create a drop down menu where for example the 1st menu has 2 items and the 2nd menu has 4 items. So when you pick the 1st drop down you get first 2 choices from menu 2 and when you select the 2nd choice in menu 1 you get the other 2 choices from menu 2. so drop down New York would have Queens , Brooklyn etc... <form name="region" onClick="this.form.submit()" default="ny" method="POST"> <select name="dropdown"> <option value="ny">New York</option> <option value="to">Toronto</option> <option value="ln">London</option> <option value="hk">Hong Kong</option> </select> <noscript><input type="submit" value="Submit"></noscript> </form>
  4. I would like the remote shell script to execute rather than show me the contents
  5. regarding: Tried this on my server to another, and my result showed the contents of the sh file I get the same thing, it will show me the contents of the remote shell script but not actually execute it.
  6. so I want the script to reside on machine2 but to be executed from machine1. Sort of like running a remote rsh command.
  7. Greetings, I'm trying to execute a shell script which is residing on a webserver on a remote machine with no luck. I have tried the following. It looks like it runs but I never see the output from the script on machine2. Any suggestions from machine 1: echo exec('http://machine2/script.sh); and from machine1: <?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://machine2/script.sh"); curl_setopt($ch, CURLOPT_HEADER, 0); curl_exec($ch); curl_close($ch); ?>
×
×
  • 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.