Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

Hi there i'm relatively new to php. I've tried to build a contact form that generates a nice html email. So far i've succeeded in redirecting to my "thank you_page" if the form is send. I've even succeeded in the html setup. The only thing I can't get to work are de form variables.

I just can't get them to show in the html email that's been send out.

Can someone please tell what I've got to do, to solve this problem.

My php code looks like this:

http://www.wvansonsbeek.nl/contact_process.html (I know the extentions must be renamed to .php in order for the script to work properly, I've just gave it an html extention for you to examine my source code)

Many thanks in advance!!

Ralph

share|improve this question
    
please read more about PHP strings, PHP variables inside single quota are just considered as string not variable for example: echo '$var'; while you can use double quota for printing it echo "$var"; –  user1646111 Jul 14 '13 at 20:17
    
please post code here, not link to it –  Dagon Jul 14 '13 at 20:20
    
remove header ('location: contact_bedankt.html'); line to see what error you are getting. Then post the error. –  Prashant Baid Jul 14 '13 at 20:31
    
@ Dagon: I sadly can't post my code here because it's to long –  Ralph Kuiper Jul 15 '13 at 8:40
    
@ Prashant Baid: When removing the header ('location: contact_bedankt.html'); line I'm getting a blank page as a result. –  Ralph Kuiper Jul 15 '13 at 18:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.