Laravel Form Action Url

I don’t know how to send data (in POST) to a site other than mine with Laravel Form.

I tried the (GET) form:

{!! Form::open(array('url' => 'http://other.domain.com')) !!} <input type="text" name="test" value="something" /> <button type="submit">Submit</button> {!! Form::close() !!} 

It stays in: mydomain: 8000 / mypage? test = something

But I want this to be http://other.domain.com?test=something

Any clue?

+6
source share
2 answers

The problem I encountered is "HTML":

 <form> <form action='http://other.domain.com'> <input type="text" name="test" value="something" /> <button type="submit">Submit</button> </form> </form> 

And the fact is that when you click the submit button, it takes the first form. Very strange.

0
source

I think you are looking

 {!! Form::open(array('action' => 'http://other.domain.com')) !!} 
0
source

All Articles