Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8963087
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:16:56+00:00 2026-06-15T16:16:56+00:00

I have a form that I am validating via captcha. I have an if

  • 0

I have a form that I am validating via captcha.
I have an if statement.
If user enter wrong captcha, it tells it to go back.
else the page should re-direct to the following

  http://tre.emv3.com/D2UTF8?emv_tag=876020001C384269&emv_ref=EdX7CqkdLe_d8SA9MOPQNCffL0p6Hq3D-jmueKEyWsbQKbo&FIRSTNAME_FIELD=XXXXXXXXX&LASTNAME_FIELD=XXXXXXXXX&DATEOFBIRTH_FIELD=XXXXXXXXX&EMAIL_FIELD=XXXXXXXXX&EMVCELLPHONE_FIELD=XXXXXXXXX&STORE_NAME_FIELD=XXXXXXXXX&

where every XXXXXXXX should be replaced by the variables from the form.
when I try the code below, the variables do not get replaced.
thank you for your help.

      <?php session_start(); ?>
      <?php 
      ob_start();
          date_default_timezone_set("Europe/London");
          include_once $_SERVER['DOCUMENT_ROOT'] . '/maininc/securimage/securimage.php';

          $securimage = new Securimage();
          if ($securimage->check($_POST['captcha_code']) == false) {
            // the code was incorrect
            // you should handle the error so that the form processor doesn't continue

            // or you can use the following code if there is no validation or you do not know how
            echo "THIS IS WRONG.<br /><br />";
            echo "Please go <a href='javascript:history.go(-1)'>back</a> and try again.";
            exit;
          }else{
           $FIRSTNAME_FIELD = $_POST['FIRSTNAME_FIELD'];
           $LASTNAME_FIELD = $_POST['LASTNAME_FIELD'];
           $DATEOFBIRTH_FIELD = $_POST['DATEOFBIRTH_FIELD'];
           $EMAIL_FIELD = $_POST['EMAIL_FIELD'];
           $EMVCELLPHONE_FIELD = $_POST['EMVCELLPHONE_FIELD'];
           $STORE_NAME_FIELD = $_POST['STORE_NAME_FIELD'];
           header('location: http://tre.emv3.com/D2UTF8?emv_tag=876020001C384269&emv_ref=EdX7CqkdLe_d8SA9MOPQNCffL0p6Hq3D-jmueKEyWsbQKbo&FIRSTNAME_FIELD=echo$FIRSTNAME_FIELD;&LASTNAME_FIELD=echo$LASTNAME_FIELD;&DATEOFBIRTH_FIELD=echo$DATEOFBIRTH_FIELD;&EMAIL_FIELD=echo$EMAIL_FIELD;&EMVCELLPHONE_FIELD=echo$EMVCELLPHONE_FIELD;&STORE_NAME_FIELD=echo$STORE_NAME_FIELD;&');
          }
      ob_end_flush();
      exit;
      ?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T16:16:57+00:00Added an answer on June 15, 2026 at 4:16 pm

    get rid of the echo’s in your link and use header(” .. “) instead of ‘

    read here why http://php.net/manual/en/language.operators.string.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a registration form that a user can access via invitation. For example,
I currently have form that checks if a user has unsubmitted changes when they
I have an HTML form that takes inputted data and sends it via the
I have a form that I submit via AJAX. It is using the standard
I have an HTML form on my site that submits via Ajax to a
I have a form on my page that I am having trouble receiving a
I have created a form that must pass validation via JQuery to see if
i have validation working on the form that is on the page. I have
I have a Drupal 7 form which I'm allowing the user to submit via
I have a form that needs validating using DOM methods and javascript for our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.