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
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("gmerrors@gmail.com", "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

?>

Link to comment
Share on other sites

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.