Results 1 to 4 of 4

Thread: HTML/Java Help?

  1. #1
    NWS Post King!!! ProjectWidow's Avatar
    Join Date
    Jun 2003
    Location
    Over there on the left
    Age
    38
    Posts
    5,456
    Rep Power
    30

    Default HTML/Java Help?

    Basically what I'm trying to do is copy a code from an existing website and put it on a new website I'm building. It's an email box people can fill out if they have any questions. I tried to copy part of the code I thought I needed but when I tried to click Submit to make it work, it wouldn't send.

    Any help would be much appreciated.

    I'm just trying to copy the code for the Contact box.
    Here is where I want to get the code from:
    http://www.r2b2motors.com/index.php?...k=showEO&id=10

    Thanks

  2. #2
    NWS Post King!!! ProjectWidow's Avatar
    Join Date
    Jun 2003
    Location
    Over there on the left
    Age
    38
    Posts
    5,456
    Rep Power
    30

    Default

    No html gurus on tonight?

  3. #3
    ⎝⏠⏝⏠⎠ RandomGuy's Avatar
    Join Date
    Jan 2004
    Location
    GA
    Posts
    18,981
    Rep Power
    150

    Default

    I haven't read the entire code yet,

    first the validator, and then the submitter

    as soon as you click the submit button on the form it'll execute validate()
    [code]<input class="button" type="button" name="send" value="Submit" onClick="javascript:validate()"> [/code]
    and at the end of the validate script, if all data is valid, it'd execute the following line:
    [code]document.contactform.submit();[/code]

    that goes all the way back to [code]<form action="index.php" method="post" name="contactform" id="contactform">[/code]

    the reason it's not working for you is bc the form is POSTing to index.php (which is server side)

    but yeah theres much easier ways just read up a quick javascript tutorial it'd be easier to make it yourself than trying to gank theirs and make it work... just make your own form, and code it


    im half asleep 3AM brain hurt FTL

  4. #4
    Slowest Car on IA David88vert's Avatar
    Join Date
    Nov 2002
    Location
    Johns Creek
    Age
    53
    Posts
    8,378
    Rep Power
    38

    Default

    They are using PHP to process the form on the server side. Are you able to do any server side processing on your server?
    It sounds like you would be happy with a free formmail server. Something like FormBuddy would probably make you happy.
    http://www.formbuddy.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
ImportAtlanta is a community of gearheads and car enthusiasts. It does not matter what kind of car or bike you drive, IA is an open community for any gearhead. Whether you're looking for advice on a performance build or posting your wheels for sale, you're welcome here!
Announcement
Welcome back to ImportAtlanta. We are currently undergoing many changes, so please report any issues you encounter with the site using the 'Contact Us' button below. Thank you!