samarudge 16 Posting Whiz

When you post your form you need to tell it to post the form to the frame called _top, the frame _top is always the main browser window E.G. everything displayed in the browser.
You need to add a tag to your <form> tag telling it the frame:

<form action="/post.php" method="post" name="Form" target="_top">

So your complete form would look something like this:

<form action="/post.php" method="post" name="Form" target="_top">
  <label>Name
  <input type="text" name="Name" id="Name" />
  </label>
  <br />
  <label>Email Address
  <input type="text" name="Email" id="Email" />
  </label>
  <p>
    <label>
    <input type="submit" name="post" id="post" value="Submit" />
    </label>
  </p>
</form>

You can also use the target= tag to specify a Frame or IFrame name, if you enter the ID of the frame then the form will change the URL of the frame and not the whole page E.G.

<iframe id="Frame1" width="100px" height="100px" name="Frame1" src="Page.html" />
<form action="/post.php" method="post" name="Form" target="Frame1">
</form>

and your form would post to the frame called Frame1 and the main URL would stay the same.

Hope this helps, if you have any more probs then reply to this and I will put an example on my site.
Regards,
Sam Rudge

samarudge 16 Posting Whiz

Hi,

I have tried

system("psexec -i -d -s C:/WINDOWS/notepad.exe");

and when I execute the script from my browser ( IE and FireF@x ) the page does not load. When i looked in the Apache Error log there are the lines:

[Mon May 26 17:51:12 2008] [error] [client 127.0.0.1] PsExec v1.94 - Execute processes remotely\r
[Mon May 26 17:51:12 2008] [error] [client 127.0.0.1] Copyright (C) 2001-2008 Mark Russinovich\r
[Mon May 26 17:51:12 2008] [error] [client 127.0.0.1] Sysinternals - [url]www.sysinternals.com\r[/url]
[Mon May 26 17:51:12 2008] [error] [client 127.0.0.1] \r

but notepad.exe does not open.

I have also tryed this in PHP as well as perl and the command psexec -i -d -s C:/WINDOWS/notepad.exe runs exactly as desired when I run it in CMD

Regards,
Sam Rudge