Jump to content

Why does this not work?


silentg0d

Recommended Posts

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

 

 

Link to comment
https://forums.phpfreaks.com/topic/42284-why-does-this-not-work/
Share on other sites

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;   
?>

 

 

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.