Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Form Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

How to redirect form to another domain with POST data?


Go to End


611 Views

Avatar
CodeLearner21

Community Member, 1 Post

8 December 2016 at 12:25am

I want to create the form which saves record in database and redirects the browser to a POST request to another server.
I tried this with

$this->redirect('http://anotherdomain.com/?var1=value1&var2=value2')

is that correctway?

Thanks in advance