In a form(in Drupal) I want to have a temporary field that there is no need to save it’s value in database. So I need a way to prevent form from sending the field’s value to $_POST array. Is it possible?
Share
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.
name, it won’t be sent by the browser.See Form submission: Successful controls for the complete rules.
That said, your approach is very very wrong. You shouldn’t decide what to put in a database based on what comes from the client. The client can send you anything!