• Hi, i’m rolling out a few word press admin panels kindof like using it for a CMS..

    i’m trying to add a form onto the Dashboard so that my clients can contact me if they need any help.

    when using method=’post’ on the form from the dashboard it does the redirects fine however it strips the content of the form its posting, so i’m receiving blank emails out of it..
    i’m guessing this is a configuration in wordpress.. anyone got any help on it??..

    the form action is working outside of wordpress..

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mdskinner

    (@mdskinner)

    Anyone got any knowledge on this one??..

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    What redirects are you talking about? The form should be submitting to the page that handles the input. Any redirection should occur after the input has been handled.

    Thread Starter mdskinner

    (@mdskinner)

    Hi, thanks, sorry, i’m using:

    <form action=’/formaction.php’ method=’post’>

    so it sends you to the ‘formaction.php’ which contains:

    $mailto = “[email protected]”;
    $subject = “from web-form”;
    $redirect = $_SERVER[‘/thankyou.php’];

    and it takes you all the way to ‘thankyou.php’ so its obviously ‘semi’ executing the ‘formaction.php’ file.

    But, when the email gets through to my account, its empty, so i was wondering if wordpress might be stripping it?.

    Thanks for your help Otto42.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    What code are you actually using to send the email? If you’re comfortable posting your formaction.php code, post it up on https://wordpress.pastebin.ca and post the link back here so we can take a look at it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘php method=’post’ form not working properly (configuring wp-admin dashboard)’ is closed to new replies.