Jump to content

Help dumping $_POST array into an email


keegenk

Recommended Posts

I need to email the form http://keegenk.com/providenceltddesign/ to myself.  Right now, the email is sending and the confirmation page comes up, but the email does not have any of the data that should be collected by the form.

I'll attach the php file that I'm using to capture the variable and send it to the email address.

Any and all help is appreciated.  Thanks a bunch

 

[attachment deleted by admin]

Link to comment
Share on other sites

This is what I got, but I don't understand it

 

Notice: Undefined index: Field1 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 9

 

Notice: Undefined index: Field2 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 10

 

Notice: Undefined index: Field3 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 11

 

Notice: Undefined index: Field4 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 12

 

Notice: Undefined index: Field4-1 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 13

 

Notice: Undefined index: Field5 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 14

 

Notice: Undefined index: Field6 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 15

 

Notice: Undefined index: Field7 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 16

 

Notice: Undefined index: Field8 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 17

 

Notice: Undefined index: Field9 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 18

 

Notice: Undefined index: Field10 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 19

 

Notice: Undefined index: Field11 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 20

 

Notice: Undefined index: Field12 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 21

 

Notice: Undefined index: Field13 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 22

 

Notice: Undefined index: Field14 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 23

 

Notice: Undefined index: Field15 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 24

 

Notice: Undefined index: Field16 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 25

 

Notice: Undefined index: Field17 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 26

 

Notice: Undefined index: Field18 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 27

 

Notice: Undefined index: Field19 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 28

 

Notice: Undefined index: Field20 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 29

 

Notice: Undefined index: Field21 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 30

 

Notice: Undefined index: Field22 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 31

 

Notice: Undefined index: Field114 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 32

 

Notice: Undefined index: Field116 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 33

 

Notice: Undefined index: Field117 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 34

 

Notice: Undefined index: Field118 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 35

 

Notice: Undefined index: Field119 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 36

 

Notice: Undefined index: Field120 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 37

 

Notice: Undefined index: Field121 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 38

 

Notice: Undefined index: Field122 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 39

 

Notice: Undefined index: Field123 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 40

 

Notice: Undefined index: Field124 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 41

 

Notice: Undefined index: Field125 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 42

 

Notice: Undefined index: Field126 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 43

 

Notice: Undefined index: Field127 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 44

 

Notice: Undefined index: Field128 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 45

 

Notice: Undefined index: Field129 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 46

 

Notice: Undefined index: Field130 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 47

 

Notice: Undefined index: Field131 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 48

 

Notice: Undefined index: Field132 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 49

 

Notice: Undefined index: Field133 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 50

 

Notice: Undefined index: Field134 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 51

 

Notice: Undefined index: Field135 in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 52

Thank you for filling out our Client Interview Form

Link to comment
Share on other sites

ok I commented out the old $body as well as assigning the variables of the $_POST array.  Then added

 

$body = print_r($_POST);

 

but left the error stuff at the beginning of the php file

 

error_reporting(-1);

ini_set('display_errors', 1);

 

this is the error I got

 

Notice: Undefined variable: email in /homepages/38/d266213349/htdocs/providenceltddesign/sendmail.php on line 100

 

 

 

Thanks for the help.

Link to comment
Share on other sites

alright so you didnt do what i said

 

 

print_r($something)

 

 

prints to the screen

 

 

$somethingelse = print_r($something,true)

 

 

formats an array as a string and returns to a variable instead of printing to the screen. make sure the second argument is true or it will print to the screen

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.