I am using flash 5.0, php and mysql to insert database values. I can't get to insert the values from flash text fields into the database. Whenever I do that it gives me the error message "undefined variable". I am tried error_reporting in php.ini and also used IsSet property in php but it always gives me the same error. I want to insert values from a flash text field into mysql database. I use MS Windows 2000 Professional, flash 5.0, php 4.0.4pl1 for windows. Please help me... Thanx a lot.
This is the code that I use in PHP which simply checks whether the values from a flasht form containg two text fields named uname and pass are set or not. If they are not set then display the appropriate message. That's all but I am bugged with this and I still cant get it to work.
<?php
if ((IsSet($uname)) && (IsSet($pass)))
{
mysql_connect("localhost","bhavin","bhavin");
mysql_select_db("sirish");
$query = ("INSERT INTO bunty1 (username,password) VALUES
('$uname', '$pass')");
$result = mysql_query($query);
echo("your information has been recorded.");
}
else
echo("Variables not declared");
?>