Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

need help w/captcha


  • Please log in to reply
2 replies to this topic

#1 12Strings

12Strings

  • Members
  • 41 posts
  • OFFLINE
  •  
  • Local time:04:05 AM

Posted 17 November 2015 - 12:06 AM

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??
 

<?php
$name='';
$visitor_email='';
$user_message='';
?> 
<!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="ckdoublnecks@yahoo.com" />
<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>


BC AdBot (Login to Remove)

 


#2 Billy O'Neal

Billy O'Neal

    Visual C++ STL Maintainer


  • Malware Response Team
  • 12,304 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Redmond, Washington
  • Local time:02:05 AM

Posted 19 November 2015 - 01:24 PM

Most email clients will not process a <form>. You'll need to give the user a link to the form instead.

 

Billy3


Twitter - My statements do not establish the official position of Microsoft Corporation, and are my own personal opinion. (But you already knew that, right?)
Posted Image

#3 12Strings

12Strings
  • Topic Starter

  • Members
  • 41 posts
  • OFFLINE
  •  
  • Local time:04:05 AM

Posted 20 November 2015 - 12:13 PM

I'm at a loss now. I kept trying and checking all yesterday. Today, a day later, I find 15 perfect emails. Thanks for posting.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users