To mySQL, then the email form does not work after the insertion of the post

I use the Spry framework to validate certain fields on a form and then insert all of the data forms in a database (with no problems). Then, I want to send an email with a few fields from the form submission.  Normally this works very well in the email PHP code that I have, BUT after adding the spry validation or after you add the insert after section of goto, email PHP code no longer receives the form post data.

Any ideas what could cause the loss of the post of the form variables?

Thank you!

-Daniel Hoviss

Normally the form sends the data to the processing page, I transmit not explicitly all variables form.

Like this

In fact, you pass form variables explicitly. It's that submit a form.

When you submit a form, the variables are passed to the next page, through the GET method or the POST method. That's why you can access it using $_POST or $_GET. Variables exist only from one page to another. As soon as you redirect the user to another page, the values are destroyed. The code in Dreamweaver $insertGoTo uses the header() function to redirect the user to another page. This is why your variables are no longer available.

The simple way around this is to add the email script immediately before the code that redirects the user. You can either put the E-mail script directly in the same page, or use a PHP include.

Tags: Dreamweaver

Similar Questions

  • Basic PHP email form does not work after upgrade to 20141

    I have a MAC OS X 10.7.5 - I have 2 sites that use e-mail very basic PHP forms that worked very well until I upgraded to Dreamweaver.  Now, I can fill in the form and there is not error - it seems that it works as before, but I never have the email.  Says Adobe support has nothing to do with the upgrade and there is an error in the script code.  Can someone help me?  Here is the send.php

    <?

    $name = $_POST ['name'];

    $email = $_POST ['email'];

    $tel = $_POST ['such'];

    $comments = $_POST ['comment'];

    $security = $_POST ['security'];

    $to = " [email protected] "; "

    $subject = 'New Contact site';

    $message = ' a visitor of DLPRecordingStudios.com introduced a contact request.\n\nName: $name\n\nEmail: $email\n\nTelephone: $tel\n\nComments: $comments\n\nPlease answer to the request.\n\nBest contact cordially, \n\nYour Webmaster (and master of your universe);

    If ($security == '7') {}

    mail ($to, $Subject, $message);

    Header("Location:contact.php?s=1");

    }

    else {}

    Header("Location:contact.php?s=2");

    }

    ? >

    Thanks - Tracey

    Sure that you will find the upgrade is not to blame, and the timing is a coincidence.

    Cause the most likely problem is your SMTP server being modified settings. It is very common to block mail scripts because they are a major source of spam.

    In addition, as Rob says, always include a "From" header It is not required, but doesn't it have will significantly increase the chances of your anti spam mail.

  • Contact email form does not work

    I tried to replace the 'simple' contact form and using different e-mail addressed but the form does not return to me.

    I am temp accommodation on Business Catalyst site before going live. All of the suggestions. Thanks, Jim

    Did you follow the suggestions in style and contact forms add form widgets in Adobe Muse.  ?

  • My 'contact' form does not work.  When I send a contact test she returned to my adobe email account this: 'Contact form' has a new form submission.

    My 'contact' form does not work.  When I send a contact test he returned this to my adobe email account:

    'Contact form' has a new form submission.

    What does not work exactly? As you said form submission notification is received in your e-mail account, so process form working I think but you want the notifications to go to another e-mail account, I think.

    Have you added the email address in the field "Email to" in shape options? If Yes and then also you do not receive the form, then please give me the url of the site and post a screenshot or a form with the open option box.

    Thank you

    Sanjit

  • you want to know why my email address does not work in my muse contact form widget?

    Hello:

    You want to know why my email address does not work on my muse contact form widget?

    Captura de pantalla 2015-09-15 a la(s) 13.10.48.png

    Hi Omar,.

    Please see: Troubleshooting Muse form used on the servers of third party Widgets

    Kind regards

    Akshay

  • I've updated my Muse app to the latest version of July and since then my Muse forms do not work with several of my web hosting providers. Is this a case of the site not having host is not the latest version of PHP?

    I've updated my Muse app to the latest version of July and since then my Muse forms do not work with several of my web hosting providers. Is this a case of the site not having host is not the latest version of PHP?

    Please consult this document:

    Troubleshooting Muse form used on the servers of third party Widgets

    Thank you

    Sanjit

  • PHP contact form does not work

    I created my page using godaddy but my php contact form does not work. When sending a message, he won't have to the sent Message (su message to ha enviado) page, but it is not actually send any mails. The accounts are set up, but it does not work. The web page is cuysrus.com, the contact form is on the contact page.

    This is the code I used for the php class linked to the html file:

    <? PHP

    $to = " [email protected] "; "

    $subject = 'new message ';

    $nombre = $_POST ['number'];

    $apellido = $_POST ['apellido'];

    $message = $_POST ['message'];

    $headers = "from: ". " [email protected] \n";

    $headers. = "X-Mailer: PHP /'." phpversion();

    $headers. = "MIME-Version: 1.0\r\n";

    $headers. = "content-Type: text/html;" charset = iso-8859-1\n ";

    $retval = mail ($to $subject, $message, $headers);

    If ($retval == true) {}

    echo "message Su will ha enviado.

    } else {}

    echo "Vuelva a intentarlo.

    }

    ? >

    Well sorry that I forgot to ask about the action of form... you will need to rework this if you do not have to use the form of godaddy.

    a few things... first of all, you have the transformation code in the page, if you want that your action forms literally go anywhere.  ' change action = "? »

    Second, you'll need a 'trigger' in the form must be added a hidden as field

    Thirdly, finally, you have this block of code that I rewrote the process, if there is a request for 'process' then here is the code:

    <>

    form of process

    If (@$_REQUEST ['process']) {}

    $headers = "from: [email protected] \n";

    $to = "[email protected]";

    $subject = 'new message ';

    $body = "number:". "" $_REQUEST ['number']. »

    Apellido: ".." $_REQUEST ['apellido']. »

    Message: ".." $_REQUEST ['message']. »

    ";

    $retval = mail ($to $subject, $body, $headers);

    If ($retval == true) {}

    echo "message Su will ha enviado.

    } else {}

    echo "Vuelva a intentarlo.

    }

    }

    ?>

  • My contact form does not work, not even in business catalyst

    My contact form does not work, not even in BusinessCatalyst, need help so I need to work, my BusinessCatalyst site is http://foodtrucksdecolombia.BusinessCatalyst.com and it works in my own server which is www.foodtrucksdecolombia.com need

    I see what you mean now. Seems to be a problem with your phone field. Did you by chance change the email for a field phone field? I see that you do not have a field of electronic mail and an email field is required for the form to work. If I add an email to the contact number field, it works fine.

  • Contact widget form does not work.

    Contact widget form does not work. No message sent or received. Ordinary e-mail works fine. Site hosted by GoDaddy officially transferred in British Colombia. E-mail still hosted by GoDaddy. I set up correctly and changed the name servers. How can I solve the problem? I sent many messages to test through the widget. I get no email sent me. The button send the form only blackens, but nothing else happens

    Hi Alex,

    I guess that you are talking about the autoresponder email, which is sent to the sender of the form. The reason is 'Autoresponder send e-mail' is disabled on your form. To activate it, please log into the administration panel of your site, navigate to Site Manager > Web forms > open the form in question > autoresponder click email button and check the box "send email autoresponder".

    @Andiesam2004 > is the same with your site too.

    Kind regards

    Aish

  • Form does not work when it s poses in a movieclip


    I've isolated the problem and it s seems to be concentrated in the path "mcForm.skickat eq 'Yes' below: (the serverside script is done in Php).

    I t looks like that the form does not work when it s respondent in a movie clip called mcForm with a button send simply called 'send '.
    I have to place the form in a movieclip, because the shape is a good interpolation made by Laco interpolation method.

    Everything works fine if ["BOLD"] I have no place [/ bold] form in a movieclip.

    Here´s a part of the actionscript in the script main navigation.swf:

    If (mcForm.skickat eq 'Yes') {}
    gotoAndStop ("labelFinished");
    }

    Here´s actionscript code on the button 'Send' in mcForm in navigation.swf:
    on (release) {}
    loadVariables (" http://www.homesit.se/phpmail.php", "", "GET");
    _parent. Play (); This statement is not the problem.
    }

    The chronology in navigations.swf never reaches the label "finished."

    It works fine if I do not place shape to a movieclip in navigation.swf timeline:

    If (mcForm.skickat eq 'Yes') {//this path is the problem
    gotoAndStop ("labelFinished");
    }

    Here´s in php serverscript:
    (I have no problem here)

    <?
    $headline = "mail from your Homesite.
    $text = "$name sent email you from your homesite.
    It wrote:

    $message
    ";
    mail ($mymail, $headline, $text,
    "To: $email. (' \nReply-to:".$email);
    ECHO ("Send = Yes");
    ? >

    What could possible be wrong

    I appreciate every response.


    The root of the problem (look at the code you posted), it's that there is no event that determines what should happen when your data comes back from PHP. When you use loadvariables, you need an event for mcForm, like our:

    {mcForm.onData = function ()}
    do something
    }

    The problem according to what I see is that on your main timeline code checks the value of mcForm.skickat, but you do not seem to define this variable anywhere. The php script returns a variable named 'send', but I do not see anywhere skickat. If it is not set, its value will be always "not defined".

    To make things more efficient, you should really use loadVars and a reponsed instead of loadVariables Manager. When you use loadVariables, all variables in the clip are sent to your php script that transfer really just data loss. Using loadVars, you specify what vars to send, making the process more efficient. See the docs... everything is in there (with examples).

    BTW... This is the Flash Media Server forum. In the future, you might want to ask questions like this in the general flash or actionscript forum, you will get more answers (more people read on these forums)

  • My apple pencil does not work after the 9.3.4 update.

    My apple pencil does not work after the 9.3.4 update. I tried to restart but still does not work. Tried to forget the device and whenever I connect the pencil to the ipad pro, it is said that it does not recognize the cable / device. Help please.

    < re-titled by host >

    Greetings RechargeableJam,

    Welcome to the communities of Apple Support!

    I see that your Apple pencil does not work after update to iOS 9.3.4. I guess it's about to have a problem with something that worked with the previous version of the iOS software. I'm happy to help you to help you find the best resolution.

    First of all, let's close open applications on your iPad Pro. This can ensure that there is nothing running in the background that is causing a conflict. The following article will help you:

    Force a nearby application on your iPhone, iPad or iPod touch

    Then connect the pencil of Apple and see if it is recognized for the time being. If you don't see the Pair button, wait a minute while your Apple pencil costs. Then disconnect your Apple pencil, Plug and back on hold until you see the button in hand.

    Best regards.

  • my phone does not work after last update itunes on my phone connection with my pc, it shows only i tunes icon and the application of itune on my pc does not work

    my phone does not work after last update itunes on my phone connection with my pc, it shows only i tunes icon and the application of itune on my pc does not work

    For general advice, see troubleshooting problems with iTunes for Windows updates.

    The steps described in the second case are a guide to remove everything related to iTunes and then rebuild what is often a good starting point, unless the symptoms indicate a more specific approach.

    Review the other boxes and other support documents list to the bottom of the page, in case one of them applies.

    More information area has direct links with the current and recent buildings if you have problems to download, must revert to an older version or want to try the version of iTunes for Windows (64-bit-for old video cards) as a workaround for problems with installation or operation, or compatibility with QuickTime software or a third party.

    Backups of your library and device should be affected by these measures but there are links to backup and recovery advice there.

    Once iTunes to work properly, you should be able to fix your device.

    TT2

  • I need to connect to Microsoft to pay a Bill. I do not know my password and my email address does not work.

    I need to connect to Microsoft to pay a Bill.  I do not know my password and my email address does not work. Please help me how to do this.

    Hi PAULWILBURN,

    Here is a link to the MSN Support.

  • Keyboard does not work after authentication on the RDS Session host

    When you connect to the RDS through the access portal or app keyboard does not work after authentication on the RDS session host. Offline authentication works very well, past will guide you to the RDS host, then when you try to reset your password, the keyboard does not work.

    Has anyone else had that... ?

    Options (some better than others!) are:

    1. move all MS applications seamless

    2. have an application named "Reset your password" (or similar) which uses MS Seamless.then you can leave other applications, as they are

    3 disable authentication carried forward and implemented our service reset password instead so people reset their password before can connect you.

    4. use the full desktop instead of transparent

  • My IllustratorCS4, iMovie and iNdesign CS4 that came with my computer when I bought it about 4 years ago does not work after I was informed by a representative of Adobe until this day my computer. I still have the programs on my computer. How can I get re

    My IllustratorCS4, iMovie and iNdesign CS4 that came with my computer when I bought it about 4 years ago does not work after I was informed by a representative of Adobe until this day my computer. I still have the programs on my computer. How can I get the re install

    If you're ready to uninsntall, then reinstall, you can download at the bottom of the link;

    Download the CS4 products

Maybe you are looking for