Hi --
I'm trying to post a form using Request.HTML but my browsers won't
accept its moocode.
Here's the message I get from Firefox:
Error: not well-formed
Source File: newstest.php
Line: 3, Column: 14
Source Code:
<form method=post name="subscribeform">
The console points the lack of quotes around "post" as the problem.
Here's my js:
$('subscribeform').addEvent('submit', function(e) {
new Event(e).stop();
var newsletterRequest =
new Request.HTML({url:'/lists/?
p=subscribe&id=2'}).post($('subscribeform'));
});
And my form code:
<form action="/lists/?p=subscribe&id=2" method="post"
id="subscribeform" name="subscribeform">
... lots of <inputs> ...
<input type="submit" value="Subscribe" >
</form>
I've tried a lot of workarounds (from this and other boards) but every
variation comes back to the same problem. I started to migrate the
script to using GETs but that's proving quite a pain.
Thanks!
Dean