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 7400145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:09:36+00:00 2026-05-29T04:09:36+00:00

need a little help with this one. I have a form that I am

  • 0

need a little help with this one.

I have a form that I am validating using the “form_validation” library in codeigniter, obviously the form action is pointing to itself for validation (as it should) but i need to submit to an external url, with the post data included, if validation successful.

CURL is not an option as i need the user to also be redirected to that page and GET method is also not an option as the data needs to be POSTed!!

it almost needs a function like PHP redirect() that you can attach an array of post data to.

ideal world = redirect('https://payment.bank.com', 'method: POST', $data_array);

if there is no way to do this i may have to invent it, but want to ask the question first before i go re-iventing the wheel (it will also take a considerable amount of time, i guess)

EDIT: also note javascript is also not an option as the site needs to work with or without javascript enabled!!!!!

  • 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-05-29T04:09:36+00:00Added an answer on May 29, 2026 at 4:09 am

    This is not possible the way you describe it, as PHP is server side, and it would be the SERVER submitting the data, NOT the user, so the redirect to that data would NOT be possible.

    You could CURL the data, then redirect based on a ‘reference’ from the foreign server (say submission ID).

    However the most simple approach would be to do this:

    • Validate the data like you are doing right now
    • Loading a new FORM page with all that data loaded & hidden in a new form
    • that new loaded form page would say something like “Validated, click to continue if you are not automatically redirected” (which would submit the form), at this point use Javascript to submit/redirect, OR as a fallback people would click the button.
    • Data then is validated by you initially (captured / modified / augmented) and then prepared for transport to the foreign host with a tiny delay.

    Keep in mind if you are doing a post like this without permission, the foreign post might have cross domain submission checking (say abc.com not allowed to submit to xyz.com).

    Hope that helps.

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

Sidebar

Related Questions

I'm so close on this one, but I need a little help. I have
I need a little help on this subject. I have a Web application written
Newbie in javascript.. Need a little help. I have a SPAN or IMG that
I just need little help, that is: many times i have seen http://www.xyz.com/index.jsp?etetet%rr^_frfwrw.... .
I need a little help with this.. I need to take only the numbers
I know I'm close to figuring this out but need a little help. What
Need a little help with a SQL / ActiveRecord query. Let's say I have
I need a little help brainstorming on a query. I have a sales table
I have a collection of strings that need to be parsed (using RegEx patterns)
need a little help with extracting part of the URL via regex I have

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.