Form with multiple actions.
Posted: Mon Dec 21, 2009 11:05 pm
Hello everyone,
I have a form right now with two fields - 1 being a text area, and - 2 being a file upload box. I want one submit button, and when pressed it should send the comments to the database and the uploaded file to a folder called uploads.
So really, my question is: How would i go about making a form with multiple 2 actions. Would i have to make the "form action" link to another php file, and within that php file have a IF statement that says: "If its coming from the textarea, do this. And if it's else, do this. If so, how would i go about doing that. (im not very good at php yet).
Thanks a lot you guys!
I have a form right now with two fields - 1 being a text area, and - 2 being a file upload box. I want one submit button, and when pressed it should send the comments to the database and the uploaded file to a folder called uploads.
So really, my question is: How would i go about making a form with multiple 2 actions. Would i have to make the "form action" link to another php file, and within that php file have a IF statement that says: "If its coming from the textarea, do this. And if it's else, do this. If so, how would i go about doing that. (im not very good at php yet).
Thanks a lot you guys!