• Hello,

    I’m trying to build a contact form custom widget. So i would like to display a contact form with a WordPress widget and send a message.

    No problem to display the form with my widget but when i click on the send button i can’t retrieve my data. The isset($_POST[‘my_data’]) doesn’t work.

    When I put my form code out of the widget in a simple php file, everything is ok, the isset($_POST[‘my_data’]) work well.

    I do the test with this simple snippet:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Is it possible to implement a form with a WordPress custom widget ?

  • The topic ‘Contact form with custom widget’ is closed to new replies.