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); } 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. Link to comment https://forums.phpfreaks.com/topic/218101-neeeeeddd-helppppp-php/#findComment-1131742 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.