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

 

 

Link to comment
Share on other sites

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

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.