Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-25-2009, 04:05 PM
David4321 is offline David4321
Registered User

Join Date: Oct 2009
Posts: 1

How can I add captcha to phuploader - examples?

I have a customized phuploader at http://www.mymangosteencards.com/MMC-uploader.php.

I want to add a captcha, because I've been getting junk in my upload folder.

I have several captcha scripts - how (and where in the code) can I add one to this page. It could be below, or integral to the uploader table; and it's fine if it uses the existing default buttons, or if those buttons are removed and placed below the captcha - doesn't matter to me.

I'm not much of a coder, so examples or clear instructions will really help me.

Thank you for responding.
Reply With Quote
  #2  
Old 11-07-2009, 06:25 AM
eru321 is offline eru321
Registered User

Join Date: Nov 2009
Posts: 1

Start a session in the first line of the phUploader code.

Before the part of the code where you upload your data, insert

if($key==$code){

and here insert the uploading code

}
else
{
echo"Captcha Wrong";
}

To generate the captcha code you can download a php page called
"immagine.php" from here http://fotomat.it/immagine.zip

you have to insert this page in the same folder of your phuploader.php

then in form part of phUploader you have to insert:

<img src="immagine.php">
<input type="text" name="key" size="20">.

In the "immagine.php" you can set a lot of options to generate captcha. At the end of this page you can see that a sassion start and that a code var is set with the value of the captcha generated.

Now the immagine.php is set with my options.

I hope you can understand me, i want to sorry for my english, i write from Italy.
I hope i help you. Bye
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
phUploader Customize hysteriksmile phphq.Net Forums 4 03-24-2010 11:41 AM
PhUploader problem buggerwepisspoo phphq.Net Forums 0 09-21-2008 06:18 PM
phUploader sof-com phphq.Net Forums 1 05-25-2008 02:50 AM
phUploader help lodupersempre phphq.Net Forums 0 05-12-2008 08:30 AM
mysterious captcha error msg rrhobbs phphq.Net Forums 4 07-22-2007 05:55 AM


All times are GMT -5. The time now is 06:26 PM.




Powered by vBulletin®