HOME


Mini Shell 1.0
DIR: /home/islapiiu/sites/travelwithsusa/contact-form/
Upload File :
Current File : /home/islapiiu/sites/travelwithsusa/contact-form/captchacode-widget.php
<?php

$captchacode = rand();

?>               


<img src="contact-form/Generate_Captcha_Code.php?rand=<?php echo $captchacode; ?>" id='captchaimg'   >  



<a href='javascript: refreshCaptcha();' class="contact-details">

    <div class="refreshbox">

        <div class="refresh-img">        

            <img style="border:none;" src="contact-form/img/refresh.png" title="Click to change the code"/>

        </div>

    </div>

</a>



<script language='JavaScript' type='text/javascript'>



    function refreshCaptcha() {

        var img = document.images['captchaimg'];

        var c = Math.round(Math.random() * 10000);

        img.src = img.src.substring(0, img.src.lastIndexOf("?")) + "?rand=" + c;

    }



</script>