silentg0d Posted March 12, 2007 Share Posted March 12, 2007 This wont be easy to say so i will have to explain what my code does first let me give you my code. http://pastebin.parentnode.org/4704 Ok There is something wrong with the strings $HeadPiece = $Headx; $ChestPiece = $Chestx; $ArmPiece = $Armx; $LegPiece = $Legsx; $FeetPiece = $Feetx; This code sends a message to my email from a form which looks like so {$Profession} {$SetName} Head=$HeadPiece; Chest=$ChestPiece; Arms=$ArmPiece; Legs=$LegPiece; Feet=$FeetPiece; To get $HeadPiece, $ChestPiece, $ArmPiece, $LegPiece, $FeetPiece The people using the form need to input a hex code in the form, i then use a list to take certain variables out of the hex code and put them into the correct variables. But when i send the email it looks like this {$Profession} {$SetName} Head=; Chest=; Arms=; Legs=; Feet=; any idea what i did wrong, im new to php this was my second project Quote Link to comment https://forums.phpfreaks.com/topic/42284-why-does-this-not-work/ Share on other sites More sharing options...
redarrow Posted March 12, 2007 Share Posted March 12, 2007 what is all these for and comming from ? please going mad know? <?php list($Hex[0], $Hex[1], $Hex[2], $Hex[3]) = $Headx; list($Hex[9], $Hex[10], $Hex[11], $Hex[12]) = $Chestx; list($Hex[18], $Hex[19], $Hex[20], $Hex[21]) = $Armx; list($Hex[27], $Hex[28], $Hex[29], $Hex[30]) = $Legx; list($Hex[36], $Hex[37], $Hex[38], $Hex[39]) = $Feetx; ?> Quote Link to comment https://forums.phpfreaks.com/topic/42284-why-does-this-not-work/#findComment-205114 Share on other sites More sharing options...
trq Posted March 12, 2007 Share Posted March 12, 2007 Can we see some actual code? Quote Link to comment https://forums.phpfreaks.com/topic/42284-why-does-this-not-work/#findComment-205116 Share on other sites More sharing options...
trq Posted March 12, 2007 Share Posted March 12, 2007 Sorry... didn't see that postbin thing. $HeadPiece = $Headx; 26 $ChestPiece = $Chestx; 27 $ArmPiece = $Armx; 28 $LegPiece = $Legsx; 29 $FeetPiece = $Feetx; Where do you define $Chestx, $Armx etc etc....? Quote Link to comment https://forums.phpfreaks.com/topic/42284-why-does-this-not-work/#findComment-205117 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.