As you can see, I have a total of 5 requests. I want all 5 of them emailed to me. Obviously, the sender is handled by my web-hosting server, and the message/subject are simple, but I am unsure on how to get the sender's email and name included in the message.
To anyone who can help, that would be greatly appreciated.
It's more likely the fields name you use in your form (email, name) do not match what the server-side script is expecting. You can generally just look at the server-side script to get that information. Otherwise the web hosting company should provide that info somewhere in the help section.
Right, I understand your problem now (it is not what I thought your problem was from the first post). All you need to do is include \n at the end of each line of your message body
what if i wanted a break rather than just spacing? thanks.
also it seems like every time i hit refresh, i get an email and its blank. but the submit button does not work either.
i know that i have some excess code. can you tell me which of this i can rid, and/or compress? thanks again.
\n gives you a line break just like <br> so that is what you need.
With regard to why your form isn't submitting, I have no idea without seeing your form code and any other PHP you have that deals with the posted form data (there is nothing in your code posted above that can be removed and there is no excess).
Okay. I have my main page "index.html" in my contacts folder. index.html has the 'design' part of my contact page.
Code:
<form action="thank-you.html" method="post">
<p id="p">Please leave your full name, email, and your comment. Be sure that it is clear what your intention is in your email. I check my email periodically, so I intend to get back to you right away. Thanks.</p>
<p>- Tibneo</p>
<table width="387" height="239" border="0" cellpadding="0" cellspacing="2">
<tr>
<td>Your name:</td>
</tr>
<tr>
<td><input name="name" type="text" id="name" size="32" /></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Email address:</td>
</tr>
<tr>
<td><input name="email" type="text" id="email" size="32" /></td>
</tr>
<tr></tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Message:</td>
</tr>
<tr>
<td><textarea name="message" cols="50" rows="5" id="message" class="bodytext"></textarea></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Submit" id="submit" />
<input type="reset" name="clear" id="clear" value="Clear" /></td>
</tr>
</table>
</form>
This is the form, the input/textarea. pretty much, this is what the viewer sees.
now.
before, i had everything in a single .php file, including the input and textarea. and i just had a single iframe on the main (index.html) page. and that clearly wasn't working.
could i be doing something wrong? where do i go from here?
Well the first thing I see is that you are trying to submit your form to an html page when it should be a php page so change your file name and form action to thank-you.php
Well the first thing I see is that you are trying to submit your form to an html page when it should be a php page so change your file name and form action to thank-you.php
Bookmarks