I am need a little assistance with my script.
The script below collects information to submit to my SMS provider. The message is generated by submitting a URL with specific values and the message is then sent. At this point the script DOES work.
Once the message is submitted, I am left at a blank page on the site on I am submitting the URL to. I would like to submit the url in the background while redirecting to a page on my own site.
[php]<?php
// Constant Information(Make sure to edit only things between “” or else this may effect the program.)
$companyid = “sendpassword”; //sendpassword
$password = “password”; // PASSWORD
$userid = “myid”; // User ID
$providerurl = “https://myproviderurl”; // provider url format of the url provider.
if (isset($_POST[‘submit’])){
$tosend = trim($_POST[‘tosend’]);
$message = trim($_POST[‘message’]);
$senderid = trim($_POST[‘sendid’]);
header (“Location: {$providerurl}CompanyId={$companyid}&UserId={$userid}&Password={$password}&Msisdn={$tosend}&MessageT ext={$message}&OasText={$senderid}”);
}
?>
Recipient:
|
|
---|---|
Message: |
|
Sender ID: |