Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default EZpage stripping slashes Form php output

    I have a special order form created and added to an ezpage. I have the php code for form output sent to email and form successfully submitted message added to another ezpage. When the special order form ezpage is filled in and submitted it triggers the form successfully submitted message ezpage. The form output is sent to email and the customer is shown the form submitted successfully message. That all is working as expected. The only problem I am encountering is when I receive the email the form output content is not in list form. It all runs in sentence form making it difficult to sort through.

    When I go in to view the php code in the ezpage I see the backslash \ is being removed. This is an example of how the code should look.

    PHP Code:
    $formcontent=" Fist-name: $firstname \n Last-name: $lastname \n Phone: $phone \n Email: $email \n Order-number: $ordernumber \n Message: $message"
    instead the back slash is being removed from in front of n

    PHP Code:
    $formcontent=" Fist-name: $firstname n Last-name: $lastname n Phone: $phone n Email: $email n Order-number: $ordernumber n Message: $message"
    I'm using ezpage in text mode.

    To allow the php to work in ezpage I have used the code from this thread

    http://www.zen-cart.com/forum/showpo...48&postcount=7

    Any idea of what needs to be done to stop the backslash from being removed?

  2. #2
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default Re: EZpage stripping slashes Form php output

    From the code on the thread
    http://www.zen-cart.com/forum/showpo...48&postcount=7

    <div><?php eval(stripslashes('?>' . $var_pageDetails->fields['pages_html_text'])); ?></div>

    I tried removing, stripslashes leaving the code like this

    <div><?php eval(('?>' . $var_pageDetails->fields['pages_html_text'])); ?></div>

    to see if it would make any difference and it doesn't.

 

 

Similar Threads

  1. v154 Php open_basedir restrictions & PHP output buffering (gzip) off
    By bearlymakinit in forum Installing on a Windows Server
    Replies: 0
    Last Post: 5 May 2015, 08:41 PM
  2. Can't add <textarea> in form on my EZpage
    By sfklaas in forum General Questions
    Replies: 9
    Last Post: 28 Mar 2009, 04:16 PM
  3. How to create a form on ezpage?
    By sfklaas in forum General Questions
    Replies: 4
    Last Post: 13 Jul 2008, 02:30 AM
  4. PHP output buffering?
    By trillian in forum General Questions
    Replies: 4
    Last Post: 3 Sep 2007, 10:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg