July 18th, 2011, 12:09 PM
Convert PHP to ASP please :)
Hello, and thank you for taking the time to assist me. I am currently looking for a nice simple jquery captcha that is either point and click, or drag and drop. I keep running into PHP though.
So im hoping someone is kind enough to help me convert this to VB.
Thank you again for your time
if($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST['captcha']) && $_POST['captcha'] == $_SESSION['captcha'])
echo "Passed!"; /* YOUR CODE GOES HERE */
unset($_SESSION['captcha']); /* this line makes session free, we recommend you to keep it */
elseif($_SERVER['REQUEST_METHOD'] == "POST" && !isset($_POST['captcha']))
/* in case that form isn't submitted this file will create a random number and save it in session */
$rand = rand(0,4);
$_SESSION['captcha'] = $rand;
July 18th, 2011, 12:23 PM
"Assist" and "help" are the key words here. Most of the time we'll convert something... for a fee.
But what you have is short. Edit your post to put the code all on one line (delete what you have, copy/paste the code into the post, select it, and then hit the button) and we'll be able to read it.
July 18th, 2011, 12:37 PM
Edited as requested, I was hoping it was a quick and painless.
Ill keep in mind gratuity when I need something scary
July 18th, 2011, 01:42 PM
Oh: Classic ASP or ASP.NET?
July 18th, 2011, 01:56 PM
Forgive me for not being more specific.
Originally Posted by requinix