-

2011年8月1日星期一

Contact form on CSS website - PHP Script?

-On my contact page on my website, i have code for a form to send me a message. My other yahoo answer question has a responce about creating a php script to send the actual message to me. Do i just create this php file and keep it with the html css documents and upload it to the server when im ready to publish it or do i have to pay extra for it????? please look at the html code on my contact page and is it possible for u to write me a php script? Thanks for any help





HTML:



<form id ="contactform" name="htmlform" method="post" action="html_form_send.php">

<table width="450px">

</tr>

<tr>

<td valign="top">

<label for="first_name">First Name *</label>

</td>

<td valign="top">

<input type="text" name="first_name" maxlength="50" size="30">

</td>

</tr>

<tr>

<td valign="top"">

<label for="last_name">Last Name *</label>

</td> <td valign="top">

<input type="text" name="last_name" maxlength="50" size="30">

</td>

</tr>

<tr>

<td valign="top">

<label for="email">Email Address *</label>

</td>

<td valign="top">

<input type="text" name="email" maxlength="80" size="30">

</td>

</tr>

<tr>

<td valign="top">

<label for="comments">Comments *</label>

</td>

<td valign="top">

<textarea name="comments" maxlength="1000" cols="25" rows="6">

</textarea>

</td>

</tr>

<tr>

<td colspan="2" style="text-align:center">

<input type="submit" value="Submit">

</td>

</tr>

</table>

</form>You shouldn't need to pay extra to upload php files. Assuming you're able to upload them, keep the php file in the same area as html and css files.



If the php script doesn't work, you may need to check the server settings to see which version of PHP the server is running. Most servers run version 5.You don't need to pay extra for it. You just need this php file be uploaded on your server and connected to your contact form template. You can upload it via ftp and ask the man who will make for you this php file to connect it to you form. Also you can use php forms http://phpforms.net/ where you need only copy and paste the code to your site.

没有评论:

发表评论