I'm trying to add a feature to my Laravel application that allow users to save Google / facebook / hotgar Pixels code (javascript code).
The user have a form with input TAG that he can past is pixel.
Now when i submit the form and trying to handle to corm data in my controller... that input that contain the javascript data... are empty
when
<input type="text" class="conversion-code" name="poptinConversionCode[]" value="<script type='text/javascript'></script>"></input>
<input type="text" class="conversion-code" name="poptinConversionCode[]" value='test test'></input>
in the controller
[poptinConversionCode] => Array
(
[0] =>
[1] => test test
)
Why?
And how i can do send javascript to my controller?
via Dani Banai