Hi,
I am trying to make a script call a url that sends text messages.
here is what i have to call,
http://www.intellisoftware.co.uk/smsgateway/sendmsg.aspx?username=xxx&
+password=xxx&to=12345678&text=this%20is%20my%20text&sender=me
where all the string elements are set as variables in the script below.
if ($form{'ASSMS'} eq "Yes") {
$ring = "0";
$smsdate = $Day.$monnm.$yearx;
$smslogtitle = $smsdate;
$smstitlea = $form{'DESTINY'};
$smstitleb = "44";
$smstitled = substr($smstitlea, 1, 10);
$smstitle = $smstitleb.$smstitled.$smstitlec;
$smsuser = "xxx";
$smspass = "xxx";
$smsto = $smstitleb.$smstitled;
$smssender = "DMSTEST";
$smsmsg = "$form{'DESC'} Ref: $form{'REQREF'}";
$smsmax = "3";
$smsmsg =~ s/\ /%20/g;
$smsurl = "http://www.intellisoftware.co.uk/smsgateway/sendmsg.aspx?us
+ername=$smsuser&password=$smspass&to=$smsto&from=$smssender&text=$sms
+msg&maxconcat=$smsmax";
NEED TO CALL URL HERE
$adtitle = $form{'FILEBIT'};
&oops('Cannot write') unless (open(NEWITEM, ">>$basepath/Parts/$adtitl
+e.dat"));
print NEWITEM
"\n$form{'TSTAMP'}-$form{'initials'}-SMS-$form{'DESC'}";
close NEWITEM;
$izsent = 1 ;
open(NEWITEM, ">>$smslog/$smslogtitle.dat");
print NEWITEM
"\n$Hour:$Minute-$form{'DESTINY'}-$form{'REQREF'}-$form{'DESC'}";
close NEWITEM;
print $smsurl;
print <<"EOF";
<p align="center"><font face="Verdana">Your text message has been logg
+ed and sent !</p>
EOF
}
the script works in that I can get it to print on screen the exact url i need, but i am not sure how to make the script call that url in IE.
Any Help would be appreciated.
Cheers
Michael
In reply to Call URL
by dmsparts
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|