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消息,但它重定向失败 –