Jump to content

Web Form


BrainDeadGenius

Recommended Posts

I'm not sure if this should go in this section or rather the Guide forum. It's not a guide, but an example of the usage of HTML and JavaScript.

 

In any case, the example can be found at the URL below.

http://www.cryptictest.tk/examples/webform/webform.html

 

The form does not submit, it merely shows how JavaScript can be used to interact with the HTML webpage. If you would like to use the form on a website, just PM me and I can help you set it up.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Very nice, I see it now

 

<html>
<head>
<title>Web Form Example - BrainDeadGenius</title>
<script type="text/javascript" src="script.js"></script>
</head>
<body>

<form name="demo" onsubmit="return validateFormOnSubmit(this);"">
<table summary="Demonstration form">
<tbody>
     <tr>
        <td><label for="name">Your Name:</label></td>
        <td><input id="name" onclick="return changeBackground(this);" size="35" maxlength="30" type="text"></td>
        <td id="notify1">&nbsp;</td>
     </tr>
    
    
<tr>
        <td><label for="sender">Your E-Mail:</label></td>
        <td><input id="sender" onclick="return changeBackground(this);" size="35" maxlength="40" type="text"></td>
        <td id="notify2">&nbsp;</td>
     </tr>
    
    
<tr>
        <td><label for="receiver">Recipient's E-Mail:</label></td>
        <td><input id="receiver" onclick="return changeBackground(this);" size="35" maxlength="40" type="text"></td>
        <td id="notify3">&nbsp;</td>
     </tr>
    
    
<tr>
        <td><label for="subject">E-Mail Subject:</label></td>
        <td><input id="subject" onclick="return changeBackground(this);" size="35" maxlength="40" type="text"></td>
        <td id="notify4">&nbsp;</td>
     </tr>
    
    
<tr>
        <td><label for="message">E-Mail Message:</label></td>
        <td><textarea id="message" onclick="return changeBackground(this);" rows="5" cols="30"></textarea></td>
        <td id="notify5">&nbsp;</td>
     </tr>
     <tr>
    
    
<tr>
        <td>&nbsp;</td>
        <td><input name="Submit" value="Send" type="submit" ></td>
        <td>&nbsp;</td>
     </tr>
</tbody>
</table>
</form>

<p>Made by <a href="http://www.hackforums.net/member.php?action=profile&uid=1831731">BrainDeadGenius</a> of HackForums.</p>

</body>
</html><!-- www.1freehosting.com Analytics Code -->
<noscript><a title="Free hosting" href='http://www.1freehosting.com">Free hosting</a><a title="Web host free" href="http://www.1freehosting.com">Web host free</a><a title="Free websites hosting" href="http://www.1freehosting.com/free-website-and-hosting.html">Free websites hosting</a><a title="Pagerank SEO analytic" href="http://www.1pagerank.com">Pagerank SEO analytic</a></noscript>
<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-21588661-2']);
_gaq.push(['_setDomainName', window.location.host]);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);

    var fga = document.createElement('script'); fga.type = 'text/javascript'; fga.async = true;
    fga.src = ('https:' == document.location.protocol ? 'https://www' : 'http://www') + '.1freehosting.com/cdn/ga.js';
    var fs = document.getElementsByTagName('script')[0]; fs.parentNode.insertBefore(fga, fs);

})();

</script>
<!-- End Of Analytics Code -->

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...