Minimeallolla Posted November 8, 2010 Share Posted November 8, 2010 it doesnt echo into the file if (isset($_POST['submit'])) { $firstname = ($_POST['firstname']); $lastname = ($_POST['lastname']); $filename = "***/$username.info.php" or exit("Unable to open file!"); $handle = @fopen($filename, 'x+')or die(mysql_error()); $content = ('$firstname'); @fwrite($handle, $content)or die(mysql_error()); @fclose($filename); } Quote Link to comment https://forums.phpfreaks.com/topic/218101-neeeeeddd-helppppp-php/ Share on other sites More sharing options...
trq Posted November 8, 2010 Share Posted November 8, 2010 Variables are not interpolated within single quotes. Quote Link to comment https://forums.phpfreaks.com/topic/218101-neeeeeddd-helppppp-php/#findComment-1131742 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.