html5 POST fails... why?
Posted: Mon Apr 27, 2020 1:17 am
Hi,
THis is driving me nuts, but it's gotta be something simple.... the LC script below works perfectly when triggered in the run mode of the IDE on the desktop..., but when the same simple file is saved as HTML, nothing makes it through to the server. Can someone suggest what is going on?
on mouseUp
put "tStudentName=" & URLencode("Typhoid Mary") into tStudentName
Post tStudentName to URL "http:....php"
end mouseUp
on the server end, I have a PHP file running this code:
<?php
$tStudent = $_REQUEST['tStudentName'];
mail("goodemail@correctaddress", "Test",$tStudent);
?>
THis is driving me nuts, but it's gotta be something simple.... the LC script below works perfectly when triggered in the run mode of the IDE on the desktop..., but when the same simple file is saved as HTML, nothing makes it through to the server. Can someone suggest what is going on?
on mouseUp
put "tStudentName=" & URLencode("Typhoid Mary") into tStudentName
Post tStudentName to URL "http:....php"
end mouseUp
on the server end, I have a PHP file running this code:
<?php
$tStudent = $_REQUEST['tStudentName'];
mail("goodemail@correctaddress", "Test",$tStudent);
?>