How can I pass global variables into a function?

PHP HTML emails- can you pass PHP variables w/n an HTML email created with mail ()?

  • Can you pass PHP variables w/n an HTML email created by PHP mail() function? I can create a normal email that passes my PHP variables to the message section of the email when sent. ...show more

  • Answer:

    Is it possible that you could post the code up for a better look? i suspect it will probably be to do with the proper use of quotation marks though. EDIT -Yes from looking at the code the single quote '<html>.... ' behaves as if that is an entire string. End with single quotes after each piece of html eg '<html><body>text blah' $mailvariable '<font> blah blah</font>' $next_mailvariable i am also assuming that above that code you have declared the actual variables? ie: $mailvariable = $_POST('mailvariable') etc Hope this makes sense!

XORQWGUTFIGY6GG7HZK3UFJR24 at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.