Request Info form with CSS

Here's a forum to share the forms that you create. Show the code and add a picture - or a link to the form on the web.

Request Info form with CSS

Postby jamesls on Thu Sep 27, 2007 8:14 am

Hi there This is my first post here.

Basicaly I took the form posted in "Optical Contact / Request Information form by laurel" and altered it to suite my needs and added some CSS styling. Hope you guys like it and can find a use for it somewhere.

Code: Select all
<style type="text/css">
<!--
  legend
{
color:#000000;
background:#6699FF;
border: 1px solid #781351;
padding: 2px 6px;
}
fieldset
{
border: 1px solid #781351;
width: 90%;
background-color:#E9FEFE

}
label2
{
width: 16em;
text-align: right;
margin-right: 0.5em;
display: block;
}
   label1
{
width: 8em;
float: left;
text-align: right;
margin-right: 0.5em;
display: block;
}
select {
width: 8em;
text-align: left;


}
 
  input
{
color: #781351;
background: #fee3ad;
border: 1px solid #781351;
}

.submit input
{
color: #000;
background: #ffa20f;
border: 2px outset #d7b9c9;
}
-->
</style>
</head>

<body>
<fieldset>
<legend>JLS Design Details</legend><br/>
<label2 for="contact">Contact: **************</label2><br/>
<label2 for="tel">Telephone: **************</label2><br/>
<label2 for="mob">Mobile: **************</label2>
</fieldset><br/>
<fieldset>
<legend><strong>Your Details</strong></legend>
<p><label1 for="name">Your Name:</label1><input type="text" name="name" size="40"></p>
<p><label1 for="email">E-mail:</label1><input name="email" type="text" size="40">
<p><label1 for="dayphone">Day Phone:</label1><input type="text" name="day_phone" size="20">         </p>
<p><label1 for="evephone">Evening Phone:</label1><input type="text" name="night_phone" size="20"></p>
</p>
</fieldset><br />
<fieldset>
<legend><strong>When would you like this project to begin?</strong></legend> 


<br/>
<label2 for="month"><strong>Month</strong>
<select NAME="month" id="ff_elem203" size="1">
  <option SELECTED VALUE="none">Select Month</option>
  <option VALUE="Jan">Jan</option>
  <option VALUE="Feb">Feb</option>
  <option VALUE="Mar">Mar</option>
  <option VALUE="Apr">Apr</option>
  <option VALUE="May">May</option>
  <option VALUE="Jun">Jun</option>
  <option VALUE="Jul">Jul</option>
  <option VALUE="Aug">Aug</option>
  <option VALUE="Sep">Sep</option>
  <option VALUE="Oct">Oct</option>
  <option VALUE="Nov">Nov</option>
  <option VALUE="Dec">Dec</option>
</select></p></label2>
<br/>
<label2 for="year"><strong>Year</strong>
  <select name="select" id="year" size="1">
    <option value="2007" selected="selected">2007</option>
    <option value="2008">2008</option>
    <option value="2009">2009</option>
  </select>
</label2>

</fieldset><br/>
<fieldset>
<legend><strong>Your Enquiry is about:</strong></legend>
<div align="left">
<table border="0" width="90%" id="table4" align="left">
  <tr>
    <td width="150">
      <p><input TYPE="checkbox" NAME="ff_nm_Website[]" VALUE="info" id="ff_elem193">
      <label id="ff_lbl193" for="ff_elem193">Website Design </label>
      </p>
      <p><input TYPE="checkbox" NAME="ff_nm_NewMedia[]" VALUE="info" id="ff_elem194">
      <label id="ff_lbl194" for="ff_elem194">New Media </label>
    Design</td>
    <td width="164">
      <p><input TYPE="checkbox" NAME="ff_nm_SoftwareBox[]" VALUE="info" id="ff_elem195">
      <label id="ff_lbl195" for="ff_elem195">SoftwareBox</label>
      Design</p>
      <p><input TYPE="checkbox" NAME="ff_nm_Print[]" VALUE="info" id="ff_elem196">
      <label id="ff_lbl196" for="ff_elem196">Print Design (eg Poster)</label>
    </td>
    <td width="304">
      <p><input TYPE="checkbox" NAME="ff_nm_Logo[]" VALUE="info" id="ff_elem197">
      <label id="ff_lbl197" for="ff_elem197">Logo</label>
      Design</p>
      <input TYPE="checkbox" NAME="ff_nm_Other[]1" VALUE="info" id="ff_elem199">
<label id="ff_lbl199" for="ff_elem199">Other Information or Questions: </label>
      <p></td>
  </tr>
</table>
</div>
<p></p>
<p><textarea COLS="50" NAME="other_info" id="ff_elem192" style="height: 63; width: 612" rows="4"></textarea>
</p>
</fieldset><br/>
<fieldset>
<legend><strong>The best way to contact you is</strong></legend>

<input type="checkbox" name="contact" value="phone"> By Telephone
<input type="checkbox" name="contact" value="email"> By Email </p>
</fieldset><br/>
<fieldset>
<legend><strong>Use the space below for additional questions & comments:</strong></legend>
<p><textarea COLS="50" NAME="other_info0" id="ff_elem205" style="height: 63; width: 612" rows="4"></textarea>
</p>
</fieldset><br/>
<fieldset><legend><strong>AntiSpam</strong></legend>
<div align="center">{imageverification}</div>
</fieldset>
</p>
<p align="center">
  <input type="submit" value="Send to JLS Design" name="Submit" style="font-weight: bold">       
  <input type="reset" value="Reset (cancel form)" name="reset" style="font-size: 8pt">
</p>


Example of what this form looks like:
Image

Hope it is ok.

Post edited by: jamesls, at: 2007/09/27 04:15<br><br>Post edited by: jamesls, at: 2007/09/27 04:16
jamesls
Fresh Boarder
 
Posts: 1
Joined: Thu Sep 27, 2007 12:56 am

Re:Request Info form with CSS

Postby admin on Thu Sep 27, 2007 10:04 am

Thanks very much James!! :)

Max
ChronoForms/ChronoConnectivity/ChronoComments Developer Thanks for using our components!
If you have any problems with any extension please tell us.
If you like any of our extensions please post a review at Joomla.org
Want users to submit their content to your website ? try Submit Story
Want to list/edit/delete your data ? try ChronoConnectivity
Want to have stylish AJAX comments ? try ChronoComments
User avatar
admin
Platinum Boarder
 
Posts: 3101
Joined: Mon Aug 14, 2006 5:29 am

:)

Postby ozzy on Sun Sep 30, 2007 7:22 am

Thank you very much its great.. And thanx for sharing it..
ozzyenglish
ozzy
Fresh Boarder
 
Posts: 6
Joined: Wed Sep 12, 2007 10:24 pm

Re:Request Info form with CSS

Postby laurel on Wed Oct 17, 2007 2:45 am

:P Very Nice!
Laurel Fitzhugh
http://www.dittany.com
laurel
Junior Boarder
 
Posts: 29
Joined: Tue Dec 12, 2006 10:17 am

Re:Request Info form with CSS

Postby abasel on Thu Mar 06, 2008 1:23 pm

I can't see how you get the input field on its own line above the image or how you put the message between the two. Also how do you get the reload image option

Image
abasel
Senior Boarder
 
Posts: 40
Joined: Tue Mar 04, 2008 6:46 pm

Re:Request Info form with CSS

Postby GreyHead on Thu Mar 06, 2008 1:34 pm

Hi abasel,

There's a way to do a refresh button in this FAQ, and in the same piece of code you'll see that you can swap around the elements of the block. Note that this will apply to all your forms though!

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3369
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Request Info form with CSS

Postby johnsmith on Fri May 16, 2008 3:27 am

Hi there,
I am new to this form and Chrono, please help me with this form. I have modified the form Jamesls posted but was unable to make it work. I am using it to collect general information about the player, names address etc.

Any help would much appreciated. By the I don't have any javascript with the form.

thanks
John.

here is the form code:
Code: Select all
<style type="text/css">

legend
{
color:#000000;
background:#6699FF;
border: 1px solid #781351;
padding: 2px 6px;
}
fieldset
{
border: 1px solid #781351;
width: 90%;
background-color:#E9FEFE

}
label2
{
width: 16em;
text-align: right;
margin-right: 0.5em;
display: block;
}
   label1
{
width: 8em;
float: left;
text-align: right;
margin-right: 0.5em;
display: block;
}
select {
width: 8em;
text-align: left;


}
 
  input
{
color: #781351;
background: #fee3ad;
border: 1px solid #781351;
}

.submit input
{
color: #000;
background: #ffa20f;
border: 2px outset #d7b9c9;
}

</style>


<fieldset>
<legend><strong>Team Registration Form</strong></legend>
<p><label1 for="name">Season:</label1><input type="text" name="name" size="40"></p>
<p><label1 for="name">Team Representative:</label1><input name="text" type="text" size="40">
<p><label1 for="dayphone">Phone:</label1><input type="text" name="day_phone" size="40">         </p>
<p><label1 for="email">Team Eamil:</label1><input type="text" name="email" size="40"></p>
<p><label1 for="name">Team Name:</label1><input name="text" type="text" size="40"></p>
</fieldset><br />
<fieldset>
<legend><strong>Roster</strong></legend> 
<p><label1 for="name">1</label1><input name="text" type="text" size="40">
<p><label1 for="name">2</label1><input name="text" type="text" size="40">
<p><label1 for="name">3</label1><input name="text" type="text" size="40">
<p><label1 for="name">4</label1><input name="text" type="text" size="40">
<p><label1 for="name">5</label1><input name="text" type="text" size="40">
<p><label1 for="name">6</label1><input name="text" type="text" size="40">
<p><label1 for="name">7</label1><input name="text" type="text" size="40">
<p><label1 for="name">8</label1><input name="text" type="text" size="40">
<p><label1 for="name">9</label1><input name="text" type="text" size="40">
<p><label1 for="name">10</label1><input name="text" type="text" size="40">
<p><label1 for="name">11</label1><input name="text" type="text" size="40">
<p><label1 for="name">12</label1><input name="text" type="text" size="40">
<p><label1 for="name">13</label1><input name="text" type="text" size="40">
<p><label1 for="name">14</label1><input name="text" type="text" size="40">
<p><label1 for="name">15</label1><input name="text" type="text" size="40">
<p><label1 for="name">16</label1><input name="text" type="text" size="40">
<p><label1 for="name">17</label1><input name="text" type="text" size="40">
<p><label1 for="name">18</label1><input name="text" type="text" size="40">
<p><label1 for="name">19</label1><input name="text" type="text" size="40">
<p><label1 for="name">20</label1><input name="text" type="text" size="40">
<br/>

<fieldset>
<legend><strong>The best way to contact you is</strong></legend>

<input type="checkbox" name="contact" value="phone"> By Telephone
<input type="checkbox" name="contact" value="email"> By Email </p>
</fieldset><br/>
<fieldset>
<legend><strong>Use the space below for additional questions & comments:</strong></legend>
<p><textarea COLS="50" NAME="other_info0" id="ff_elem205" style="height: 63; width: 612" rows="4"></textarea>
</p>
</fieldset><br/>
<fieldset><legend><strong>AntiSpam</strong></legend>
<div align="center">{imageverification}</div>
</fieldset>
</p>
<p align="center">
  <input type="submit" value="Send to Oromia Sports" name="Submit" style="font-weight: bold">       
  <input type="reset" value="Reset (cancel form)" name="reset" style="font-size: 8pt">
</p>
johnsmith
Fresh Boarder
 
Posts: 13
Joined: Thu May 01, 2008 11:34 pm

Re:Request Info form with CSS

Postby GreyHead on Fri May 16, 2008 9:05 am

Hi John,

When you say it doesn't work can you say a bit more please? What doesn't work? If you turn debug on what do you see?

Bob

Max: I can't get this to show the code!!!
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3369
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Request Info form with CSS

Postby romanum on Fri May 16, 2008 12:52 pm

I have the same problem with this code,debug is on,but shows me no errors.

When i copy this code in the html area and i go to "Save" the component dont save the full code.only a piece of it.
Code: Select all
<fieldset> <legend><b>Bei Fragen:</b></legend><br/>
<label2 for="contact">Fahrschule Nickel</label2><br/>
<label2 for="tel">Telefon: 0282</label2><br/>
<label2 for="mob">Mobil: 0170</label2>
</fieldset><br/>
<fieldset>
<legend><strong>Persönliche Angaben</strong></legend>
<p><label1 for="name"> Name:</label1><input type="text" name="name" size="40"></p>
<p><label1 for="email">Stasse/Nr.:</label1>
  <input name="street" type="text" size="40">
<p><label1 for="email">PLZ/Ort:</label1>
  <input name="ort_plz" type="text" size="40">
<p><label1 for="email">Geb.Datum:</label1>
  <input name="geb_datum" type="text" size="14" value="TT.MM.JJJJ">
<p><label1 for="email">E-mail:</label1><input name="email" type="text" size="40">
<p><label1 for="dayphone">Telefon:</label1><input type="text" name="day_phone" size="20">         </p>
<p><label1 for="evephone">Mobil:</label1>
  <input type="text" name="mobil_phone" size="20">
</p>
</p>
</fieldset><br />
<fieldset>
<legend><strong>Welche FS-Klasse möchten Sie machen?</strong></legend>   


<br/>
<label2 for="month"><strong>Klasse</strong>
<select NAME="month" id="ff_elem203" size="1">
  <option SELECTED VALUE="none">Klasse waehlen</option>
  <option VALUE="AD">A (d, ab 25 Jahren)</option>
  <option VALUE="AB">A (b, ab 18 Jahren)</option>
  <option VALUE="A1">A1 (ab 16 Jahren)</option>
  <option VALUE="PKWB">B (KFZ)</option>
  <option VALUE="BE">BE (KFZ mit Anhänger)</option>
  <option VALUE="A_B">A+B</option>
  <option VALUE="B_BE">B+BE</option>
  <option VALUE="KL_M">M (50er Roller)</option>
  <option VALUE="mofa">Mofa</option>
  </select></label2>
  <br/>
<label2 for="year"><strong>Ich moechte:</strong> 
  <select name="select" id="year" size="1">
    <option value="2007" selected>Anmeldung</option>
    <option value="2008">Nachschulung</option>
    <option value="2009">Informationen</option>
  </select>
</label2>

</fieldset><br/>
<fieldset>
<legend><strong>Ich moechte Informationen ueber:</strong></legend>
<div align="left">
<table border="0" width="90%" id="table4" align="left">
  <tr>
    <td width="150">
      <p><input TYPE="checkbox" NAME="ff_nm_Website[]" VALUE="info" id="ff_elem193">
          <label id="ff_lbl193" for="ff_elem193">Fuehrerschein</label> </p>
      <p><input TYPE="checkbox" NAME="ff_nm_NewMedia[]" VALUE="info" id="ff_elem194">
      <label id="ff_lbl194" for="ff_elem194">Fuehrerschen </label>
    ab 17</td>
    <td width="164">
      <p><input TYPE="checkbox" NAME="ff_nm_SoftwareBox[]" VALUE="info" id="ff_elem195"> 
      <label id="ff_lbl195" for="ff_elem195">Nachschulung</label>
      .</p>
      <p><input TYPE="checkbox" NAME="ff_nm_Print[]" VALUE="info" id="ff_elem196"> 
      <label id="ff_lbl196" for="ff_elem196">Kurse</label>
    </td>
    <td width="304">
      <p><input TYPE="checkbox" NAME="ff_nm_Logo[]" VALUE="info" id="ff_elem197">
          <label id="ff_lbl197" for="ff_elem197">Preise.</label></p>
      <input TYPE="checkbox" NAME="ff_nm_Other[]1" VALUE="info" id="ff_elem199"> 
<label id="ff_lbl199" for="ff_elem199">Sonstiges </label>
      <p></td>
  </tr>
</table>
</div>
<p></p>
<p><textarea COLS="50" NAME="other_info" id="ff_elem192" style="height: 63; width: 612" rows="4"></textarea>
</p>
</fieldset><br/>
<fieldset>
<legend><strong>Sie erreichen mich am besten ueber</strong></legend>

<input type="checkbox" name="contact" value="phone"> Telefon 
<input type="checkbox" name="contact" value="email"> Email
</fieldset><br/>
<fieldset>
<legend><strong>Sonstiges:</strong></legend>
<p><textarea COLS="50" NAME="other_info0" id="ff_elem205" style="height: 63; width: 612" rows="4"></textarea>
</p>
</fieldset><br/>
<fieldset><legend><strong>AntiSpam</strong></legend>
<div align="center">{imageverification}</div>
</fieldset>

<p align="center">
  <input type="submit" value="Senden" name="Submit" style="font-weight: bold">       
  <input type="reset" value="Loeschen" name="reset" style="font-size: 8pt">
</p>
romanum
Fresh Boarder
 
Posts: 3
Joined: Fri May 16, 2008 12:41 pm

Re:Request Info form with CSS

Postby romanum on Fri May 16, 2008 1:18 pm

Ok.. i have found the error..
i dont have to use umlauts.
romanum
Fresh Boarder
 
Posts: 3
Joined: Fri May 16, 2008 12:41 pm

Re:Request Info form with CSS

Postby GreyHead on Fri May 16, 2008 1:34 pm

Hi romanum,

That makes sense, good catch!

You should also take the <body> tag out of your form code; and I think the '<label1' tags should be just '<label'.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3369
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Request Info form with CSS

Postby romanum on Fri May 16, 2008 2:26 pm

Thank you ,Bob

And thank you for this great component too.
romanum
Fresh Boarder
 
Posts: 3
Joined: Fri May 16, 2008 12:41 pm

Re:Request Info form with CSS

Postby johnsmith on Fri May 16, 2008 3:20 pm

Hi Bob,
Thank you for getting back to me. My site is going live on May 31 and I really want this form to work so that the kids can register for summer soccer games.
What I did was:
• Created the form
• Pasted the form code into the html code section
• Created the link for it by going to menu->component link and display it on my home page using a module.
• Completed the form, clicked submit button but nothing happens – no data submitted no feedback.
I suspect I need javascript function for submitting and validation?

Thanks
John
johnsmith
Fresh Boarder
 
Posts: 13
Joined: Thu May 01, 2008 11:34 pm

Re:Request Info form with CSS

Postby GreyHead on Fri May 16, 2008 3:26 pm

Hi John,

You don't need any JavaScript for submitting (and probably not for validation).

In the ChronoForms Forms Manager, open the form and turn DeBug to ON in the General Tab (and remove any ReDirect URL temporarily).

Save the form, then click on the Link for the form to display it in a new window. Put some data in and Submit the form. You should then get a screen-ful of debug info. Please copy and post that here for starters.

Bob
Bob Janes
info at greyhead.net
ChronoForms Support If you like ChronoForms please vote or post a review at Joomla.org
User avatar
GreyHead
Platinum Boarder
 
Posts: 3369
Joined: Tue May 29, 2007 10:15 pm
Location: Brittany

Re:Request Info form with CSS

Postby johnsmith on Fri May 16, 2008 5:17 pm

Hi Bob,
I did exactly as you suggested and here is the out put
POST: Array ( [name] => test [text] => [day_phone] => 465555555 [email] => test@me.com [contact] => email [other_info0] => [chrono_verification] => DifAB [Submit] => Send to Oromia Sports )
Case 1: Use table layout
E-mail: 'Yes' custom
Email not sent
E-mail message

From: Tura []
To: info@oromiasports.com, test@me.com
Subject:
name test
text
day_phone 465555555
email test@me.com
contact email
other_info0
Submit Send to Oromia Sports
reset


Submitted by 205.211.160.1

I can see something get recorded when I checked on the Saved Dataview. I have attached the screen shot. Even though I completed the form, the data is not recorded properly - no names of people registered show up.
johnsmith
Fresh Boarder
 
Posts: 13
Joined: Thu May 01, 2008 11:34 pm

Next

Return to Share your forms with others

Who is online

Users browsing this forum: No registered users and 2 guests