Gossamer Forum
Home : General : Perl Programming :

form auto submit

Quote Reply
form auto submit
hey, i have kind of asked this question before but its slightly revised.
i have a form (see below), it works if there is a submit button for the user to press, however i dont want to have one becuase this is a script that is processed by the system. so how do i submit the form without an action required? or is there a shortcut?

thanks
Pedge

Code:
<form action="" method="post" name="test outbound" id="test outbound">
<textarea cols="70" rows="25" name="XML">
<?xml version="1.0" ?>
<SMSMessage>
<SMSAuthentication>

</SMSAuthentication>
<SMSMessageData>

</SMSMessageData>
</SMSMessage>
</textarea>
</form>

also tried
Code:
my $xml =q(
<?xml version="1.0" ?>
<SMSMessage>
<SMSAuthentication>

</SMSAuthentication>
<SMSMessageData>

</SMSMessageData>
</SMSMessage>
); system (http://www.some_url.com?XML=$xml);

but that didnt work.
Quote Reply
Re: [pedge] form auto submit In reply to
You can't submit a form without an action as the browser won't know where you are trying to submit to. Or maybe I misunderstood?
Quote Reply
Re: [Recall] form auto submit In reply to
ok but how do i get that data to a remote server, without using a form?