Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: need help w/captcha  (Read 4552 times)

0 Members and 1 Guest are viewing this topic.

12Strings

    Topic Starter


    Rookie

    • Experience: Experienced
    • OS: Windows 7
    need help w/captcha
    « on: November 16, 2015, 10:25:16 PM »
    Hi, been awhile. I'm fighting this captcha form; it's been a battle (flaws in code)
    now all looks fine but it doesn't send to email. What's the obvious prob??

    Code: [Select]
    <?php
    $name
    ='';
    $visitor_email='';
    $user_message='';
    ?>

    Code: [Select]
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>Preview</title>
    </head>
    <body bgColor=#ccffff onload=doCookie() onunload="thank-you.php">
    Text<br>

    <form action="http://www.SnapHost.com/captcha/send.aspx" method="post" id="myform">
    <input type="hidden" id="skip_WhereToSend" name="skip_WhereToSend"
    value="[email protected]" />
    <input type="hidden" id="skip_Subject" name="skip_Subject"
    value="filled out preview" />
    <input type="hidden" id="skip_WhereToReturn" name="skip_WhereToReturn"
    value="http://localhost/guitars/thank-you.html" />
    <input type="hidden" id="skip_SnapHostID" name="skip_SnapHostID"
    value="LN8ATX4CSQPT" />

    Text><br>
    <p>
    <font color=red>**</font><label for='name'>Name: </label><font color=red>**</font><br>
    <input type="text" name="name" value='<?php echo htmlentities($name?>'>
    </p>
    <p>
    <font color=red>**</font><label for='email'>Email: </label><font color=red>**</font><br>
    <input type="text" name="email" value='<?php echo htmlentities($visitor_email?>'>
    </p>
    <p>
    <hr>
    <label for='message'>Enter message below:</label> <br>
    <textarea name="message" rows=5 cols=60><?php echo htmlentities($user_message?></textarea>
    </p>
    <p>
    <hr>
    <table cellspacing="0" border="0" cellpadding="8"
    style="background-color:#ffcc66;">
    <tr>
    <td colspan="2" style="padding-bottom:1px;">
    <a href="http://www.snaphost.com/captcha/" alt="web page email form"
    title="dblpreview email form" >Ckdoublenecks email form</a></td></tr>
    <tr valign="bottom">
    <td>
    <a href="#" onclick="return ReloadCaptchaImage('CaptchaImage');">
    <span style="font-size:12px;">reload image</span></a><br />
    <a href="http://www.snaphost.com/captcha/ReadyForms/">
    <img id="CaptchaImage"
    alt="dblpreview email form" style="border-width:0px;"
    title="Ckdoublenecks email form"
    src="http://www.SnapHost.com/captcha/CaptchaImage.aspx?id=LN8ATX4CSQPT" />
    </a>
    </td>
    <td>  <br /><i>Enter Captcha code</i><br />
    <input id="skip_CaptchaCode" name="skip_CaptchaCode" type="text"
    style="width:130px; height:48px; font-size:38px;" maxlength="6" /><br />
    </td>
    </tr></table>

    <script type="text/javascript">
    function ReloadCaptchaImage(captchaImageId)
     {
    var obj = document.getElementById(captchaImageId);
    var src = obj.src;
    var date = new Date();
    var pos = src.indexOf('&rad=');
    if (pos >= 0) { src = src.substr(0, pos);
     }
    obj.src = src + '&rad=' + date.getTime();
    return false;
     }
    </script>

    <input type="submit" value="Submit" name='submit'><br>
    </form>
    </body></html>