Password authentification for as3 php upload
Hi
I'm making an Air file that uploads and overwrites an XML file.
So far, the php is very simple:
$everything = $_POST['saveThisXML'];
$everything = stripslashes($everything);
$toSave = $everything;
$fp = fopen("settings.xml", "w");
if(fwrite($fp, $toSave)) echo "writing=Ok";
else echo "writing=Error";
fclose($fp);
I'd like to set up a user name and passowrd that the user enters in the Air app. Is it then just a matter of sending POST data to the php file, and have it check the user and pass variables? Is that a reasonably safe way to do it? If not, can someone please point me in th edirection of a good tutorial that they're used on this topic?
Thanks again guys.
Shaun