Jump to content

Form action on Contact Us page


Guest vfelmlee

Recommended Posts

Guest vfelmlee

See the newer versions have a Form feature for the Contact Us page - great! Does anybody have an idea of what to put in the Action box that appears when you enable this feature? I've tried various scripts I've used in the past, nothing seems to work. thanks for any help

Link to comment
Share on other sites

This will create a basic contact form, once you get it working and get used to how it works you can add more fields, this is a method using cgi mail which is normally available on most hosting plans.

1.Create a folder in the root of your domain and call it cgimail

2.Create a text file with notepad and name it email_template.txt, copy and paste the text below into it and upload the file to the cgimail folder you created.

To: Your email address goes here

Subject: Website Contact Form

Customer Name [yourname]

Email

Message [message]

3.Create the form on the contact us page using the form tools, its important when creating each text box or area that the name is exactly the same as what was used in the text file for the corresponding field. Alternatively copy and paste this code into the page, ensure you click the source button first and change the action path to make it correspond with your domain and where the script and text files are on your server.

<p>Please complete the form below. Please double check your email address is correct.</p>

<form method="post" action="your-domaim/cgi-bin/cgiemail/cgimail/email_template.txt" name="Contact Form">

	<table border="0" cellspacing="1" cellpadding="1" width="450">

		<tbody>

			<tr>

				<td style="text-align: right">Your Name:</td>

				<td colspan="2">&nbsp;<input maxlength="45" size="45" name="yourname" type="text" /></td>

			</tr>

			<tr>

				<td style="text-align: right">&nbsp;Email:</td>

				<td colspan="2">&nbsp;<input maxlength="45" size="45" name="email" type="text" /></td>

			</tr>

			<tr>

				<td style="text-align: right">&nbsp;Message:</td>

				<td colspan="2">&nbsp;<textarea rows="7" cols="40" name="message"></textarea></td>

			</tr>

			<tr>

				<td rowspan="2">&nbsp;</td>

				<td>&nbsp;<input type="submit" name="Send" value="Send" /></td>

				<td><input type="reset" name="Reset" value="Reset" /></td>

			</tr>

		</tbody>

	</table>

</form>

4. Fill in the form and test it works which it should, if not its likely you have the action path wrong.

Link to comment
Share on other sites

Guest Roger Huston

We use Estelle's advanced Contact forms. The benefits

1. It will use either the mail() or SMTP settings you have setup in the back.

2. You can have different Contact Us forms on your site and go to different emails.

Also, we installed a HelpDesk for CC4 and it works very well.

Link to comment
Share on other sites

  • 8 months later...
Guest emailtojoel

This will create a basic contact form, once you get it working and get used to how it works you can add more fields, this is a method using cgi mail which is normally available on most hosting plans.

1.Create a folder in the root of your domain and call it cgimail

2.Create a text file with notepad and name it email_template.txt, copy and paste the text below into it and upload the file to the cgimail folder you created.

To: Your email address goes here

Subject: Website Contact Form

Customer Name [yourname]

Email

Message [message]

3.Create the form on the contact us page using the form tools, its important when creating each text box or area that the name is exactly the same as what was used in the text file for the corresponding field. Alternatively copy and paste this code into the page, ensure you click the source button first and change the action path to make it correspond with your domain and where the script and text files are on your server.

<p>Please complete the form below. Please double check your email address is correct.</p>

<form method="post" action="your-domaim/cgi-bin/cgiemail/cgimail/email_template.txt" name="Contact Form">

	<table border="0" cellspacing="1" cellpadding="1" width="450">

		<tbody>

			<tr>

				<td style="text-align: right">Your Name:</td>

				<td colspan="2">&nbsp;<input maxlength="45" size="45" name="yourname" type="text" /></td>

			</tr>

			<tr>

				<td style="text-align: right">&nbsp;Email:</td>

				<td colspan="2">&nbsp;<input maxlength="45" size="45" name="email" type="text" /></td>

			</tr>

			<tr>

				<td style="text-align: right">&nbsp;Message:</td>

				<td colspan="2">&nbsp;<textarea rows="7" cols="40" name="message"></textarea></td>

			</tr>

			<tr>

				<td rowspan="2">&nbsp;</td>

				<td>&nbsp;<input type="submit" name="Send" value="Send" /></td>

				<td><input type="reset" name="Reset" value="Reset" /></td>

			</tr>

		</tbody>

	</table>

</form>

4. Fill in the form and test it works which it should, if not its likely you have the action path wrong.

I followed every step you advised, but when I click the send button it does not send it to my email, instead it shows me the cgimail text file.

Please help me out

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...