I'm getting an error Notice: Undefined variable: temp. Event though my variable temp is declared;

if(isset($_POST['saveHomePageDescription']))
			$temp = 'hello';
			writef("./homePageDescription.txt",$temp);
Member Avatar for diafol

writef?

do you mean fwrite?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.