Support » Plugin: Shortcodes Ultimate » post a form with ultimate short code “su_button” does not work

  • here is my php code :

    echo “<form method=’post’ id=’majfiche’ action=’http://monsite’>”;
    echo “<input type=text name=CHOIX_NOM value=’myname’>”;
    echo “<input type=text name=CHOIX_ADRESSE value=’myadresse’>”;
    echo “[su_button url=’http://monsite’ onclick=’document.getElementById(majfiche).submit();’ icon=’icon: ban’ icon_color=’#f70009′]Enregistrer[/su_button]”;
    echo “</form>”;

    $postnonjson = array(
    ‘nom’ => $_POST[CHOIX_NOM],
    ‘adresse’ => $_POST[CHOIX_ADRESSE],

    Here is the OUTPUT with the short code button:
    [nom] =>
    [adresse] =>

    no one variable $POST are send when i push on the ultimate short code button
    but it’s work when i push on the simple html submit button

    what is wrong in my code ? why can i do to submit a simple form with a ultimate short code button ?

    I try to do this :
    onclick='<script type=text/javascript>document.getElementById(majfiche).submit();</script>’
    the result is the same. no variable are send

  • The topic ‘post a form with ultimate short code “su_button” does not work’ is closed to new replies.