View Full Version : HTML/Java Help?
ProjectWidow
05-19-2008, 05:43 PM
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?option=com_autostand&act=object&task=showEO&id=10
Thanks
ProjectWidow
05-19-2008, 09:03 PM
No html gurus on tonight?
RandomGuy
05-20-2008, 02:45 AM
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()
<input class="button" type="button" name="send" value="Submit" onClick="javascript:validate()">
and at the end of the validate script, if all data is valid, it'd execute the following line:
document.contactform.submit();
that goes all the way back to
<form action="index.php" method="post" name="contactform" id="contactform">
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
David88vert
05-20-2008, 10:17 PM
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/
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.