yhi Posted August 26, 2016 Share Posted August 26, 2016 (edited) i have a php script which will post parameter to a websitecode 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 websitePScaptcha is not really important but if u can help me in adding it it will be great Edited August 26, 2016 by yhi Quote Link to comment https://forums.phpfreaks.com/topic/302019-verify-and-popup/ Share on other sites More sharing options...
cyberRobot Posted August 26, 2016 Share Posted August 26, 2016 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". Quote Link to comment https://forums.phpfreaks.com/topic/302019-verify-and-popup/#findComment-1536707 Share on other sites More sharing options...
yhi Posted August 26, 2016 Author Share Posted August 26, 2016 "the script could perform a header() redirect to "website.com/abc.php"."i dont want to redirect i also want to send form data after verifying captcha.. Quote Link to comment https://forums.phpfreaks.com/topic/302019-verify-and-popup/#findComment-1536715 Share on other sites More sharing options...
ginerjm Posted August 26, 2016 Share Posted August 26, 2016 Sounds like a JS question. Quote Link to comment https://forums.phpfreaks.com/topic/302019-verify-and-popup/#findComment-1536720 Share on other sites More sharing options...
yhi Posted August 26, 2016 Author Share Posted August 26, 2016 (edited) its half javascript & half phpi 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 ABCDi 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 August 26, 2016 by yhi Quote Link to comment https://forums.phpfreaks.com/topic/302019-verify-and-popup/#findComment-1536723 Share on other sites More sharing options...
cyberRobot Posted August 26, 2016 Share Posted August 26, 2016 Is your form and the final destination (website.com/abc.php) under the same domain name? If so, is there a reason you don't want to use a header() redirect? Quote Link to comment https://forums.phpfreaks.com/topic/302019-verify-and-popup/#findComment-1536731 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.