0

current URL: http://localhost/expressfly/betaversion1/index.php/users/pricing/8/No

when the form is submitted it is supposed to get redirected to a different URL but the URL passed in the form action is getting concatenated to the current URL.

Please note: Form is written in the controller

<form id='provider_pay_form' class='form-horizontal' action='index.php/users/reduce_amount/$currentSegment2' enctype='multipart/form-data' method='post' onsubmit='paynow();'>

1 Answers1

1

remove this action onsubmit='paynow();' and change action like this action='<?php echo base_url();?>index.php/users/reduce_amount/'

set this variable value in hidden field $currentSegment2 then try to run

Rajat Gupta
  • 342
  • 2
  • 12