WordPress.org

Ready to get started?Download WordPress

Forums

Variables not emailed on POST form (2 posts)

  1. Pam Blizzard
    Member
    Posted 4 years ago #

    I have an existing PHP page that uses an html form to:

    * capture user variable input;
    * post that data to a chart drawing program;
    * returns the chart to the page
    * and then uses sendmail to to email the the captured variables to me.

    This all works fine outside of WordPress, but not inside in a "Page".

    I have Exec-PHP installed, but whether I put the entire code in a Page, or call it from an "include" statement, the code doesn't completely execute in WP. The user entered data is submitted and the chart is drawn appropriately, but the email comes to me without the data inside.

    The form uses method="post" action="<?=$_SERVER['../SCRIPT_NAME']?>">

    Is there a different post method, or something else that I need to do to keep the variables available to the code?

    Thanks in advance for any help.

  2. Pam Blizzard
    Member
    Posted 4 years ago #

    The form uses method="post" action="<?=$_SERVER['../SCRThe form uses method="post" action="<?=$_SERVER['../SCRIPT_NAME']?>">

    Is there a different post method, or something else that I need to do to keep the variables available to the code?IPT_NAME']?>">

    Just wondering if anyone has any ideas on this? For now I have the page outside of my wordpress install, but would prefer to have this inside the loop.

    If this is not the appropriate forum, maybe some kind person could point me to where I should be asking?

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic