How do I add a relative path to submit an HTML form?
I want to use a relative path to submit an HTML form. I tried ./submit
it but it doesn't 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 do I refer to this path relative to the page changepassword
?
+3
rostamiani
source
to share
1 answer
Could you just add the relative path http://example.com/seekerpanel/changepassword/submit
to the action form attribute?
<form action="http://example.com/seekerpanel/changepassword/submit" method="get">
<input type="submit" value="Submit">
</form>
-2
Tommy davies
source
to share