2
我想提交表單後整合昂短信通知和短信發送後,我想將它重定向到我thankyou.html網頁,這是我的代碼:的Clickate - 改後的短信發送
<?php
if(isset($_POST['send'])){
$query="insert into table() values() ";
if(mysql_query($query)){
header("location:http://api.clickatell.com/http/sendmsg?api_id=3549342&user=xxxx&password=xxxx&to=63926475xxxx&text=xxxx ");
}
}
?>
<form method=post >
Username: input type=text name=user >
Password: <input type=text name=pass >
Name: <input type=text name=name >
Mobile number: <input type=text name=mobile_no >
<input type=submit name=submit >
</form>
假設查詢返回true,它會使用clickatell api發送短信,我希望如果消息是成功的,我希望它在顯示「Thank You」的.html頁面上重定向。
我是這個api的新手,謝謝!
你應該從$ url變量中刪除「location:」 –
@ChrisBrand謝謝你,男人。讚賞。 –
我試了一下,它發送ng消息,但它重定向失敗 –