I want to use a relative path for form submitting an HTML form. I have tried ./submit
but it does not work.
CodeIgniter + Generated code:
echo form_open('./submit');
// <form action="http://example.com/./submit" method="post" accept-charset="utf-8">
This is what I want:
http://example.com/seekerpanel/changepassword/submit
And this is what I get:
http://example.com/submit
How can I address this path as relative to changepassword
page?
I could do this using current_url function in url helper.
This generates the required output: