I'm trying to use a form to post data to an external URL, and I'm completely stumped by this problem.
The exact code I'm using is:
<form name="login" action="https://www.example.com/" method="post">
<input id="username" maxlength="50" name="username" type="text" value="username" onfocus="if(this.value == 'username') { this.value = ''; }"><br />
<input id="password" maxlength="50" name="password" type="password" value="password" onfocus="if(this.value == 'password') { this.value = ''; }"><br />
<input id="clientsubmit" type="submit" name="login" value="login"><br />
</form>
This code works perfectly in a blank html page, and logs me right in to the website I'm trying to log into. When I try to use the exact same code with a WordPress page, the page seems to refresh, and that's all I get.
I'd appreciate any help you guys might be able to give. I'm totally stumped on this one and I can only assume that it's a WordPress peculiarity.
target="_blank"on the form element. Never thought I'd use an iframe again. – pstjean Jan 18 '12 at 18:31