Hello;
If I need to post a form values, can I let this to be on the same page (I do not need to post to another page)?
How I can send the values of the icons when I am posting? I need to send the value of the listbox and the value of the text box and the value of the drop down icon?
Any advise?
Regards
Bilal
Can I post to the same page?
Moderator: General Moderators
Re: Can I post to the same page?
Those should all be posted & available in $_POST, if they're inside a form.
You can set a form to post to the current page, but it will still require a new pageload.
This will work if you're outputing your form from inside double quotes or heredocs (__URL__ I is a magical PHP constant):
This will work otherwise, but I'm not sure how standards compliant it is:
You can set a form to post to the current page, but it will still require a new pageload.
This will work if you're outputing your form from inside double quotes or heredocs (__URL__ I is a magical PHP constant):
Code: Select all
<form method = "post" action = "__URL__">Code: Select all
<form method = "post" action = "">Real programmers don't comment their code. If it was hard to write, it should be hard to understand.