Jump to content

Insert Defaultimage.png Upon Membership Registration?


justlukeyou

Recommended Posts

Hi,

 

I have set up a image upload script for members. However I am now trying to insert a defaultimage (defaultimage.png) when people register.

 

The problem is the code below inserts "defaultimagepng" and not "defaultimage.png". Can anyone advise how I can insert "defaultimage.png"?

 

Do I need to set up a string for this or is there a completely different way to do this?

 

 

 $firstname = mysql_real_escape_string(trim($_POST['firstname']));
$surname = mysql_real_escape_string(trim($_POST['surname']));
 $registerEmail = trim($_POST['email']);
$logo = (defaultimage.png);
 $registerPassword = trim($_POST['password']);
 $registerConfirmPassword = trim($_POST['confirmPassword']); 

You need to have php's error_reporting set to E_ALL and display_errors set to ON in your master php.ini on your development system so that php will help you by reporting and displaying all the errors it detects.

 

You would be getting a php error message where the problem is at that would help you fix it yourself. Hint: look at the other literal strings in your code and compare them with the $logo assignment statement.

You need to have php's error_reporting set to E_ALL and display_errors set to ON in your master php.ini on your development system so that php will help you by reporting and displaying all the errors it detects.

 

You would be getting a php error message where the problem is at that would help you fix it yourself. Hint: look at the other literal strings in your code and compare them with the $logo assignment statement.

 

He's been told that repeatedly and refuses to do it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.