Jump to content

verify and popup


yhi

Recommended Posts

i have a php script which will post parameter to a website

code look something like

<form action="website.com/abc.php" method="POST">
<input name="aname" type="text">

<input name="submit" type="submit" value="submit">
</form>

now script is sending post request directly..

 

what i want to do is before submitting post request to that website i want to check parameters for their value & then popup a captcha 

i want to create a page which is something like tinypic.com

 

after you upload the image you will get a popup (captcha ) & if you solve it correctly your image willl get uploaded

& after that i want script to submit request to that website

PS
captcha is not really important but if u can help me in adding it it will be great :D
 

Edited by yhi
Link to comment
Share on other sites

Instead of passing the data directly to "website.com/abc.php", you can pass it to a PHP script that processes the data and displays the CAPTCHA. The CAPTCHA form would then send the data, maybe through $_SESSION variables to a script that validates the CAPTCHA response. If everything checks out, the script could perform a header() redirect to "website.com/abc.php".

Link to comment
Share on other sites

its half javascript & half php

i dont want user to know that i am searching in parameter so i cant use javascript for everything..

to understand the case better

suppose i dont want user to insert some certain values in the post

for example i dont want user to input ABCD

i will first check whats in parameter & compare it with value i dont want dont

its they both are same script will die();

if not script will show popup box with captcha & if captcha is correct send form request to that website..
 

Edited by yhi
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.