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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:51:20+00:00 2026-05-26T11:51:20+00:00

i have a form with userdata, such as name, address, email etc. and i

  • 0

i have a form with userdata, such as name, address, email etc. and i wanna do a action to a page on a foreign domain which i can not manipulate. Normally i would say that the form should do action="www.notmydomain.com/externalscript.php" to send the data via POST, but now i first wanna save this data an then submit the formdata to this target. This isn´t possible in this case so I tried to send my formdata to another script on MY server which saves the data an then reuses the POSTvars and send it with curl. This works so far but i need to redirect to http://www.notmydomain.com/theforeignscript.php so that the user ends at this domain. curl doesn´t do that because it only can do request, right?!

The first page shows the form:

<form id="newsletter" action="myscript.php" method="post">....</form>

..which is used by myscript.php to save the data in a csv and then again should submit the data to http://www.notmydomain.com/externalscript.php (which cannot be edited)…

Has anybody a hint how this could be done?

Thanks in advance.

  • 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-26T11:51:21+00:00Added an answer on May 26, 2026 at 11:51 am

    You can use header("Location: http://domain.com/script.php"); to redirect the user to another address. This needs to be executed before anything is printed by your script, so make sure you catch all curl errors etc. properly to avoid ugly PHP error messages.

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

Sidebar

Related Questions

I have form where user submits field. Field can have letters, numbers, and punctuation.
I have form, where some fields are looks like rows, so I can add/delete
I have form in my page, I am using ajax.beginform(). Inside this form I
I have form like this: <div class=satu> <input type='text' size='1' maxlength='1' name='score[1][]' id='score[1][]'> </div>
I have a custom registration BrowserView where you have to extend some userdata (z3c.form
I have a site where users can suggest a restaurant / Bar. The form
I have a form which includes 3 date of birth inputs like the following:
I have a register page in which via ajax request i want to redirect
i have form with user data to input and javascript ajax to send information
I have form area in my view. If I click button A , I

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.