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?
http://domain.com/seekerpanel/changepassword/
? – Demonetize<base>
tag in your header? And finally, check the form with your browser's inspector, make sure the URL isn't being changed when the page is being loaded. – Demonetize