Jump to content

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']); 

Edited by justlukeyou

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.

Hi SocialCloud,

 

Not sure what you mean?

 

I have this but it inserts defaultimagepng (without the dot)

$logo = (defaultimage.png);

 

Is there anyway I can get it to insert defaultimage.png with the dot?

Edited by justlukeyou

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.