Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: I got a mess

  1. #1
    New to the CF scene
    Join Date
    May 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I got a mess

    Please help. I am trying to get this to work for my companies website. It's not doing well at all. Any help would be greatly appreciated. I am not a coder by anymeans. This is as far as I got and mostly pasting from shared script on the net. I would greatly appreciate it if someone could put this together and get it working for me. (it would be cool to incorporate some sort of date selection also, but that's the last thing i'm worried about right now...

    thanks so much.
    TC

    here is the code:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    <html>
    <head>
    <title>Scheduling</title>
    <meta content="Evrsoft First Page" name="GENERATOR">
    <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
    <script language="JavaScript" type="text/javascript">
    </head>

    <body bgcolor="#FFFFFF">
    <body onload="Reset()">
    <!-- Begin
    function leaptoIntro() {
    window.location="http://www.evrsoft.com"
    }
    function About() {
    alert("\nHave a suggestion for a JavaScript example?\n\nFill out the form and submit it. I will see what I can do.\n\nPlease be as specific as possible.");
    document.forms[0].elements[1].focus();
    }
    function Reset() {
    document.forms[0].elements[1].value = "";
    document.forms[0].elements[2].value = navigator.appName + " " + navigator.appVersion;
    document.forms[0].elements[3].value = "";
    document.forms[0].elements[1].focus();
    }
    function submitForm() {
    if ( (isName() ) && (isEmail()) && (isRooms()) ) {
    if (confirm("\nYour submission is about to be sent.\n\nClick YES to submit.\n\nClick NO to cancel."))
    return true
    else
    return false;
    }
    else
    return false;
    }
    function isName() {
    var str = document.forms[0].elements[1].value;
    if (str == "") {
    alert("\nThe NAME field is blank.\n\nPlease enter your name.")
    document.forms[0].elements[1].focus();
    return false;
    }
    for (var i = 0; i < str.length; i++) {
    var ch = str.substring(i, i + 1);
    if (((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch)) && ch != ' ') {
    alert("\nThe NAME field only accepts letters & spaces.\n\nPlease re-enter your name.");
    document.forms[0].elements[1].select();
    document.forms[0].elements[1].focus();
    return false;
    }
    }
    return true;
    }
    function isBrowser() {
    if (document.forms[0].elements[2].value != navigator.appName + " " + navigator.appVersion) {
    if (confirm("\nYou've changed your browser type.\n\nClick YES to keep changes.\n\nClick NO to restore detected browser."))
    return true
    else
    {
    document.forms[0].elements[2].value = navigator.appName + " " + navigator.appVersion;
    return true;
    }
    }
    else
    return true;
    }
    function isSuggestion() {
    var str = document.forms[0].elements[3].value;
    if (str == "") {
    alert("\nThe SUGGESTION field is blank.\n\nPlease enter your suggestion.")
    document.forms[0].elements[3].focus();
    return false;
    }
    else
    return true
    }
    // End -->
    </script>
    <h1 align="center">HCS Scheduling &amp; Feedback Form</h1>

    <h2 align="left">&nbsp;</h2>

    <p>&nbsp;</p>

    <p>Name:&nbsp; <input name="name"></p>

    <p>Email:&nbsp;&nbsp; <input name="email"></p>

    <p>Room:&nbsp; <select size="1" name="rooms">
    <option value="1st Floor Conference Room" selected>
    1st Floor Conference Room
    </option>

    <option value="2nd Floor Fiscal Conference Room">
    2nd Floor Fiscal Conference Room
    </option>

    <option value="Board Room">
    Board Room
    </option>

    <option value="E-Training Room">
    E-Training Room
    </option>

    <option value="Meditation Room">
    Meditation Room
    </option>

    <option value="Training Room">
    Training Room
    </option>
    </select></p>

    <p><u><strong>Media</strong></u>&nbsp;</p>

    <p><input type="checkbox" value="Multimedia Projector" name="media"> Multimedia Projector<br>
    <input type="checkbox" value="Polycom Phone" name="media"> Polycom Phone<br>
    <input type="checkbox" value="Laptop" name="media"> Laptop</p>

    <p><u><strong>Additional Requests or Comments</strong></u></p>

    <p><input style="WIDTH: 635px; HEIGHT: 69px" maxlength="500" size="100" name="comments"></p>

    <p>&nbsp;</p>

    <form name="schedule" action="mailto:tchandler@hcsservices.org" method="post" id="schedule">
    <p><input type="submit" value="Submit" name="submit"><input type="reset" value="Reset" name="reset"></p>
    </form>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>

    <p>&nbsp;</p>


    </</body>
    </html>

  • #2
    New Coder
    Join Date
    Apr 2007
    Posts
    24
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up

    i've made some modifications in ur code and i'm giving the new code here.
    try this code...



    <html>
    <head>
    <title>Scheduling</title>
    <meta content="Evrsoft First Page" name="GENERATOR">
    <script language="JavaScript" type="text/javascript">
    function leaptoIntro()
    {
    window.location="http://www.evrsoft.com"
    }
    function About()
    {
    alert("\nHave a suggestion for a JavaScript example?\n\nFill out the form and submit it. I will see what I can do.\n\nPlease be as specific as possible.");
    document.schedule.elements[1].focus();
    }

    function Reset()
    {
    document.schedule.elements[1].value = "";
    document.schedule.elements[2].value = navigator.appName + " " + navigator.appVersion;
    document.schedule.elements[3].value = "";
    document.schedule.elements[1].focus();
    }
    function submitForm()
    {
    if ( (isName() ) && (isEmail()) && (isRooms()) )
    {
    if (confirm("\nYour submission is about to be sent.\n\nClick YES to submit.\n\nClick NO to cancel."))
    return true;
    else
    return false;
    }
    else
    return false;
    }
    function isName()
    {
    var str = document.schedule.elements[1].value;
    if (str == "")
    {
    alert("\nThe NAME field is blank.\n\nPlease enter yourname.");
    document.schedule.elements[1].focus();
    return false;
    }
    for (var i = 0; i < str.length; i++)
    {
    var ch = str.substring(i, i + 1);
    if (((ch < "a" || "z" < ch) && (ch < "A" || "Z" < ch)) && ch != ' ')
    {
    alert("\nThe NAME field only accepts letters & spaces.\n\nPlease re-enter your name.");
    document.schedule.elements[1].select();
    document.schedule.elements[1].focus();
    return false;
    }
    }
    return true;
    }
    function isBrowser()
    {
    if (document.schedule.elements[2].value != navigator.appName + " " + navigator.appVersion)
    {
    if (confirm("\nYou've changed your browser type.\n\nClick YES to keep changes.\n\nClick NO to restore detected browser."))
    return true
    else
    {
    document.schedule.elements[2].value = navigator.appName + " " + navigator.appVersion;
    return true;
    }
    }
    else
    return true;
    }

    function isSuggestion()
    {
    var str = document.schedule.elements[3].value;
    if (str == "")
    {
    alert("\nThe SUGGESTION field is blank.\n\nPlease enter your suggestion.");
    document.schedule.elements[3].focus();
    return false;
    }
    else
    return true ;
    }
    </script>

    <body bgcolor="#FFFFFF" onload="Reset()">
    <form name="schedule" action="mailto:tchandler@hcsservices.org" method="post" id="schedule">
    <h1 align="center">HCS Scheduling & Feedback Form</h1>
    <h2 align="left">&nbsp;</h2>
    <p>&nbsp;</p><p>Name:&nbsp; <input name="name"></p>
    <p>Email:&nbsp;&nbsp; <input name="email"></p>
    <p>Room:&nbsp;
    <select size="1" name="rooms">
    <option value="1st Floor Conference Room" selected>1st Floor Conference Room</option>
    <option value="2nd Floor Fiscal Conference Room">2nd Floor Fiscal Conference Room</option>
    <option value="Board Room">Board Room</option>
    <option value="E-Training Room">E-Training Room</option>
    <option value="Meditation Room">Meditation Room</option>
    <option value="Training Room">Training Room</option>
    </select>
    </p>
    <p><u><strong>Media</strong></u>&nbsp;</p>
    <p><input type="checkbox" value="Multimedia Projector" name="media"> Multimedia Projector
    <input type="checkbox" value="Polycom Phone" name="media"> Polycom Phone
    <input type="checkbox" value="Laptop" name="media"> Laptop</p>
    <p><u><strong>Additional Requests or Comments</strong></u></p>
    <p><input style="WIDTH: 635px; HEIGHT: 69px" maxlength="500" size="100" name="comments"></p>
    <p>&nbsp;</p>

    <p><input type="submit" value="Submit" name="submit">
    <input type="reset" value="Reset" name="reset">
    </p>
    </form>
    </body>
    </html>


    it is partially working....


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •