1. Asp contact form with javascript validation

    Posted by Rob CornishPostMarch 24, 2008Date

    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.



  2. Dynamic page controlling menu

    Posted by Rob CornishPostMarch 14, 2008Date

    Set the pages as:

    <%
    'set page id
    '-------------
    intPageID = 1
    %>
    

    Set the navigation menu as:

    <%if intPageID = 1 then%>Home<%else%>Home<%end if%>
    


  3. Virtual include

    Posted by Rob CornishPostMarch 12, 2008Date

    Using the asp virtual include:

    <!-- #Include file = "filename.asp"-->
    


Tags
Flickr
SelfDSC_0207DSC_0206DSC_0205
© 2008 dlnqnt - Admin - Login