hi im trying sms feature site. code works well.
https://www.isms.com.my/isms_send.php?un=xxx&pwd=xxx&dstno=".$number."&msg=".rawurlencode($txt)."&type=1"
although code doesn't
https://www.isms.com.my/isms_send.php?un=xxx&pwd=xxx&dstno=".$number."&msg=".$msg."%0a".rawurlencode($txt)."&type=1"
as can see in &msg=
im trying send 2 variable site tells me there error of missing parameter
. how can input 2 variable same parameter?
i guess want send multi line text message $msg
on first line , $txt
on second.
as per sparse documentation end of line character %0d
instead of %0a
.
one other remark: documenation states msg
parameter must url encode, shouldn't use rawurlencode($msg)
well.
so, in code should like:
"https://www.isms.com.my/isms_send.php? un=xxx& pwd=xxx& dstno=".$number."& msg=".rawurlencode($msg)."%0d".rawurlencode($txt)."& type=1"
note: i've put on multiple lines readability only.
Comments
Post a Comment