hello mods!!
i am facing a strange problem!! i have redirected a URL via php script using html page!!
whenever i open html page it redirects to my php code(script) on page instead of showing me the output of the data that i have put in i.e. the telephone number and the text on my page!!
The html redirects to my php code instead of giving some output!!
do tell me what 2 do!!
here is my sendsmstest.php code:-
<?php
include("config.inc");
include("functions.inc");
if(!empty($_POST))
{
$URL = 'http://localhost:13013/cgi-bin/sendsms?username=yourpassword&password=yourpassword&to='.$_POST.'&text='.htmlentities($_POST);
header('Location:'.$URL);
exit;
}
?>
AND HERE IS THE HTML PAGE WHICH IS REDIRECTING IT!!!
<html>
<head>
<title>SMS Message Sender</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<h1>SMS Message Sender</h1>
<form name="sendsms" method="post" action="http://127.0.0.1/sendsmstest.php">
<p>
Telephone number:
<br>
<input type="text" size="30" name="to">
</p>
<p>
Message:
<br>
<textarea cols="20" rows="5" name="text"></textarea>
</p>
<input type="submit" value="Send Message" name="submit">
<input type="reset" value="Reset">
<br>
</form>
<p>
</p>
<hr>
</body>
</html>