hey, i am adding a sms text service on a website. the problem is that i am a novice at perl and know nothing about xml. i have been given the code below by the company who provide this service, but i dont know how to use it with perl.
i want a script to be called by a cron job, so the user never sees this script.
i have texted the xml in a normal html file and it worked, so how do i print it in perl?
also, is there any security issuses i should take into consideration.
thanks
Pedge
<textarea cols="70" rows="25" name="XML">
<?xml version="1.0" ?>
<SMSMessage>
<SMSAuthentication>
<Username></Username>
<Password></Password>
<AccountRef></AccountRef>
<ApplicationID></ApplicationID>
<ItemID></ItemID>
</SMSAuthentication>
<SMSMessageData>
<BillingAction></BillingAction>
<ShortCode></ShortCode>
<Originator></Originator>
<Operator></Operator>
<MC></MC>
<Recipient></Recipient>
<MessageType></MessageType>
<MessageText></MessageText>
<ControlData></ControlData>
<DeliveryReport></DeliveryReport>
<DeliveryDate></DeliveryDate>
<DeliveryTime></DeliveryTime>
</SMSMessageData>
</SMSMessage>
</textarea>
<input type="submit" value="Submit">
</form>
i want a script to be called by a cron job, so the user never sees this script.
i have texted the xml in a normal html file and it worked, so how do i print it in perl?
also, is there any security issuses i should take into consideration.
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>
<Username></Username>
<Password></Password>
<AccountRef></AccountRef>
<ApplicationID></ApplicationID>
<ItemID></ItemID>
</SMSAuthentication>
<SMSMessageData>
<BillingAction></BillingAction>
<ShortCode></ShortCode>
<Originator></Originator>
<Operator></Operator>
<MC></MC>
<Recipient></Recipient>
<MessageType></MessageType>
<MessageText></MessageText>
<ControlData></ControlData>
<DeliveryReport></DeliveryReport>
<DeliveryDate></DeliveryDate>
<DeliveryTime></DeliveryTime>
</SMSMessageData>
</SMSMessage>
</textarea>
<input type="submit" value="Submit">
</form>