Getting form submitted continuously. I want form submitted only once on page load

Posted 6 days ago by mkumar2001

<form method="post" id="visitor" action="{{ url('addetails',$listing->id) }}" enctype="multipart/form-data"> <input type="hidden" name="lid" value="{{$listing->id}}" /> <input type="hidden" name="product_id" value="{{$listing->product_id}}" /> <input type="hidden" name="ip" value="{{\Request::ip()}}" /> <input type="hidden" name="visit_count" value="1" /> </form>

    document.getElementById('visitor').submit();

I want once submitted it must be stopped

Please sign in or create an account to participate in this conversation.