need help getting html contact form with multipart/form-data to work with php
I'm not a developer. I modified a template to build a site, and need help getting the contact form, which has multipart/form-data, to work with a php processing script.
Here's the relevant script:
<h3 class="p2">Contact Form</h3>
<form id="contact-form" form name ="contact" method="post"
<input name="p1" type="text"></label>
<input name="p2" type="text"></label>
<input name="p3" type="text"></label>
<a class="button" type="send" value="Send">Send</a>
All the things in the "name" attribute are passed in the $_POST array.
Now, looking at your code, yours may be done via AJAX, because as-is, your <textarea> will not be sent and that send button is an anchor, not a button.
Assuming you posted that, and it is a normal post form, the server would get something like:
Thanks, but still confused
Originally Posted by NoEffinWay
NoEffinWay (Like the name) - thanks, makes sense from what I've seen of scripts, and is getting me in the right direction. Was of the same opinion that <textarea> wouldn't be sent, because it doesn't have a name value, like the other fields do. I thought of putting in a name value, but (again, not a coder) didn't get anything that didn't show up on the page.
If AJAX, what then?
Don't know if it'll help but I used a workaround for passing data to and from a textarea box. Check out my post here.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread