-->

php redirect header location to phone number

2019-07-23 15:27发布

问题:

I'm trying to redirect the user's click on a link to a telephone number through php like this:

//HTML
<a href="tele.php">

and the php:

<?php
header("Location: tel:+123456789");
exit;
?>

This works on newer mobile browsers but won't on the older ones in particular Nokia WAP2.0 browser. Any ideas, plaese?

回答1:

Try wtai://wp/mc;xxxxxxxxx instead of tel:.