Jump to content

[SOLVED] Whats wrong with this code???


Drags111

Recommended Posts

It says the error is on the highlighted line:

 

<?php

$curIP = $_SERVER['REMOTE_ADDR'];

$fname = strtolower($_POST['fname']);

$usrname = $fname{0}. $_POST['lname'];

$email = $_POST['mail']

 

$body = "UserID: $usrname\nPass: $lname\nIP Address: &curIP";

mail("*****@gmail.com", "Account Request", $body);

 

$body2 = "An email has been dispatched to the Administrator for your request. Please give up to 48 hours for response.";

mail(&email, "Account Request", $body2);

 

echo $usrname;

?>

Link to comment
https://forums.phpfreaks.com/topic/76810-solved-whats-wrong-with-this-code/
Share on other sites

ah now i have another problem...

 

<?php

$curIP = $_SERVER['REMOTE_ADDR'];

$fname = strtolower($_POST['fname']);

$usrname = $fname{0}. $_POST['lname'];

$email = $_POST['mail'];

 

$body = "UserID: $usrname\nPass: $lname\nIP Address: &curIP\nThis person requests an account for GraphMaster.";

mail("[email protected]", "Account Request", $body);

 

$body2 = "Thank you $fname. An email has been dispatched to the Administrator for your request. Please give up to 48 hours for response.";

mail(&email, "Account Request", $body2);

 

echo $usrname;

 

error:

Parse error: syntax error, unexpected ',', expecting T_PAAMAYIM_NEKUDOTAYIM in /home/.monochrome/drags111/gma.asssoft.org/createacc.php on line 11

?>

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.