Posted by Rob Cornish
March 24, 2008
Firstly setup the html file with your form, set the name and id of this as "enquiryform". The form action needs to point to emailprocess.asp. Edit the values to suit the form.
To validate the form, use the onsubmit syntax:
<form onsubmit="return checkform(this);">
This calls in the validate.js javascript file, edit the fields within the javascript to check for a value.
Once submitted the emailprocess.asp takes all the data and sends it to the email provided in the .asp file.
Tags: asp, contact, email, enquiry, form, html, javascript, validation | Comments (0)
Posted by Rob Cornish
March 14, 2008
Set the pages as:
<%
'set page id
'-------------
intPageID = 1
%>
Set the navigation menu as:
<%if intPageID = 1 then%>Home<%else%>Home<%end if%>
Tags: asp, dynamic, else, if, menu, navigation | Comments (0)
Posted by Rob Cornish
March 12, 2008
Using the asp virtual include:
<!-- #Include file = "filename.asp"-->
Tags: asp, html, include, virtual | Comments (0)