Hello, I'm new to lot of this and especially php.
I'm having hard time with one of my app that I created.
If you go to ticketlawyerorlando.com/sms5.html and you try to send text, (which is set to go to only one number (mine)) than I get error code from php that is supposed to curl it.
Error:
Warning: curl_setopt() [function.curl-setopt]: Invalid curl configuration option in /home/content/s/j/1/sj10mil/html/ticketlawyerorlando/sms5.php on line 10
SUCCESS
My Html code is :
<html>
<body>
<br/>
<form action="sms5.php" method="post">
<b>Your Phone Number:</b> <input type="text" name="to" />
<br/>
<b>Message:</b> <input type="text" name="msg" />
<br/>
<input type="submit" />
</form>
</body>
</html>
My sms5.php code is :
<html>
<head>
<title>SMS STATUS</title>
</head>
<body>
<?php
//print $to;
//print $msg;
$curl_handle=curl_init();
curl_setopt($curl_handle, CURLOPT_GET,1);
curl_setopt($curl_handle, CURLOPT_URL,'https://api.tropo.com/1.0/sessions?to=3213314633&msg=test4&token=010fc32265db5444bbf84e92bd28f1887395ce3ade6cf69e1424d586add66b17bdc7c1d8061803f1c2319d66');
curl_setopt($curl_handle,CURLOPT_CONNECTTIMEOUT,5);
curl_setopt($curl_handle,CURLOPT_RETURNTRANSFER,2);
$response = curl_exec($curl_handle);
$code = curl_getinfo($curl_handle,CURLINFO_HTTP_CODE);
//print $code;
//print $response;
print "SUCCESS";
curl_close($curl_handle);
?>
</body>
</html>
In my php, the URL that's being curled, in the part where it says "test4" that should be actual message that is typed in the form but I don't know what kind of parameter to insert there in order for it to send message that's written, it always sends message "test4".
Please, if you could help me I would greatly appreciate it.
Thank You so much again.
MOD EDIT: code tags added