I have a form that sends stuff like names and email and a message and I get it with $_POST['etc']; – But, I also want to send action=someaction as a part of the url, but I don’t want to have any hidden form fields.
Can this be done?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yep, just add it to your url:
<form action="url.php?action=someaction" method="post">. You can retrieve them in your php script using$_GET(in this case,$_GET['action']).