Forums

Source Code Simple copy paste into each feild

wiked111 07 Jun, 2007
Hello All,

I am going to ask for something obvious and straight foward.

Me knowing abolutely nothing about webdesgin, I have a desire to learn . Anyways i came unstuck about the html and java in this form. So if someone would kindly post what to past into each box of the form in simple language i would be very greatful. I dont mind if it looks like the one on this site. Thank you in advance to anyone who can help a newbie like myself.:)
wiked111 07 Jun, 2007
Ps. If you have any tips i could use aswell then please feel free to email anything that might help me to [email]gman3635@gmail.com[/email]. Thanks Again
Max_admin 07 Jun, 2007
Hi,

Thank you, this is the HTMl code :


<table cellpadding="0" cellspacing="5" border="0">
<tr><td width="90">Title:</td><td>
<select name="title">
<option>Mr.</option>
<option>Mrs.</option>
</select>
</td></tr>
<tr><td><b>Name:</b></td><td>
<input type="text" name="name" size="40">
</td></tr>
<tr><td>Age:</td><td>
<input type="text" name="age" size="5">
</td></tr>
<tr><td><b>Email:</b></td><td>
<input type="text" name="email" size="40">
</td></tr>
<tr><td><b>Subject:</b></td><td>
<input type="text" name="subject" size="40">
</td></tr>
<tr><td><b>Message:</b><br>(Max : 1000chrs)</td><td>
<textarea rows="5" cols="40" name="maxcharfield" id="maxcharfield"
onKeyDown="textCounter(this,'progressbar1',1000)"
onKeyUp="textCounter(this,'progressbar1',1000)"
onFocus="textCounter(this,'progressbar1',1000)"></textarea><br />

<div id="progressbar1" class="progress"></div>

<script>textCounter(document.getElementById("maxcharfield"«»),"progressbar1",1000)</script>
</td></tr>
<tr><td><b>Enter code:</b></td><td>
{imageverification}
</td></tr>
</table>
<input type="button" value="Send" onClick="process_general_form()">




and this is the javascript :


function process_general_form() {   
var email = document.ChronoContact_contactdemo.email.value;
var name = document.ChronoContact_contactdemo.name.value;
var subject = document.ChronoContact_contactdemo.subject.value;
var message = document.ChronoContact_contactdemo.maxcharfield.value;
if ((email == ""«»)) 
{
alert("Incomplete Form Details\n\nPlease note that some of the fields are mandatory."«»);     
document.ChronoContact_contactdemo.email.focus();    
} else if ((name == ""«»)){
alert("Incomplete Form Details\n\nPlease note that some of the fields are mandatory."«»);     
document.ChronoContact_contactdemo.name.focus();
} else if ((subject == ""«»)){
alert("Incomplete Form Details\n\nPlease note that some of the fields are mandatory."«»);     
document.ChronoContact_contactdemo.subject.focus();
} else if ((message == ""«»)){
alert("Incomplete Form Details\n\nPlease note that some of the fields are mandatory."«»);     
document.ChronoContact_contactdemo.maxcharfield.focus();
} else {
document.ChronoContact_contactdemo.submit();
} 
}

Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
wiked111 07 Jun, 2007
Thanks so much im sure it is well worth the $25 once i get it to work🙂
This topic is locked and no more replies can be posted.