Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #652410

    Hi,
    I need help making this work :
    Here are the instructions I received followed by my attempted explanation.
    A- I need to add the following code to a specific page of my website :
    <form action=”http://webclient.softhuissier.com/v1/&#8221; method=’post’ name=”auth” class=”form” onsubmit=”document.auth.encrypted_pwd.value=hex_md5(document.auth.password.value);document.auth.password.value=””>
                            <input type=”hidden” name=”encrypted_pwd” value=”” />
                            <input type=”hidden” name=”etude” value=”darbon.com” />
                            <span style=”font-size:14px;font-weight:bold;margin-right:50px;”>Espace privé</span>
                            login :
                            <input name=”login” type=”text” size=”15″ maxlength=”250″ />
                            pasword :
                            <input name=”password” type=”password” size=”10″ maxlength=”10″ />
                            <input type=”submit” value=”Entrer” />
                            <br />
                            (Email address hidden if logged out) “>lost password?
                </form>
    B- I need to insert this code into the header of teh same page :
    <script src=”http://asp2.softhuissier.com/v1/_inc/js/md5.js&#8221; type=”text/javascript”></script>

    Implementing A seemed pretty straightforward and I used the “source code” section of Tiny MCE to make it work, the form appears correctly on the webpage (http://huissier-constat-toulouse-31.fr/espace-prive/)
    The issue I’m having is with the B part where a remote Javascript is supposed to take the information entered in the A section, automatically add a third field that will always be “darbon.com” and authenticate on another website (http://webclient.softhuissier.com/v1/).

    Where and how should I add this Javascript code ?
    Thanks in advance

    #652553

    Hey leborgne23,

    You can try the javascript in a code block, if that doesn’t work then please try this in your functions.php file:

    function add_custom_code(){ ?>
    <script src=”http://asp2.softhuissier.com/v1/_inc/js/md5.js” type=”text/javascript”></script>
    <?php }
    add_action('wp_head', 'add_custom_code');

    Thanks,
    Rikard

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.