>- see footer for list info -< Interesting way of changing the action information on the fly, thanks for that, you learn something new each day!
Lee Fortnam -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Swingewood Sent: 22 March 2006 16:34 To: [email protected] Subject: Re: [CF-Dev] Repeated Forms >- see footer for list info -< Thanks both. Id did it this way in the end .... <tr> <td align="right"> <input type="submit" name="clickme" value="Add another offender" onclick="this.form.action='RepeatOffender.cfm?ID=11&rpt=1';"> </td> <td align="right"> <input type="submit" name="clickme" value="Next" onclick="this.form.action='default.cfm?ID=13';"> </td> </tr> >From: "Duncan Cumming" <[EMAIL PROTECTED]> >Reply-To: Coldfusion Development <[email protected]> >To: <[email protected]> >Subject: Re: [CF-Dev] Repeated Forms >Date: Wed, 22 Mar 2006 15:47:01 +0000 > > >- see footer for list info -< >you have two forms, but they both have the same name. that's not valid >html. give the second form a different name and see if that helps. > > >Duncan Cumming >New Media Developer >Customer Relations Management / Education Fife Council 700 4105 / 01592 >414105 > > >>> [EMAIL PROTECTED] 22/03/2006 15:10:44 >>> > >- see footer for list info -< >Can anyone help me with this please ... > >I have a form broken don into 5 sections with a next button going to >each next section. >In one section the user can enter multiple entries .... (these are >victims and there could be many) > >So I want to be able to have <add another victim> and <next> on the >same form. When the user clicks add another victim I go off to a >'writedatarepeat' page with all of the form variables passed. When they >click next I go to a writedatapage and then on to the next form .... > >I can't get two forms on the same page to work ..... > >I have this at present ... > > > ><script language="JavaScript"> ><!-- >function submitForm() > { > document.Part3.clickme.value = "Please Wait..."; > document.Part3.clickme.disabled = "disabled"; > return true; > } >//--> ></script> > > ><!--- Is user logged in ? ---> ><cfif not isdefined("session.loggedin")> <cflocation >url="loggedin/password.cfm"> </cfif> > > ><p> ><cfform name="Part3" action="default.cfm?ID=12" method="post" >onsubmit="submitForm();"> > <table border="0" class="itemTable" width=100%> > <tr> > <td valign="top" colspan="2"><b><cfoutput>#session.user# - >#Session.DFESNo#</cfoutput></b></td> > </tr> > <tr> > <td valign="top" colspan="2"> > <!--- Header ---> > <table border="0" width=100% cellpadding="3" class="itemTable"> > <tr> > <td colspan="3" valign="top" align="center" bgcolor="#cceaff"> > <b>Racist Incident Report Form (Part 3 of)</b> > </td> > </tr> > <!--- Incident Ref No ---> > <tr> > <td colspan="3" valign="top" align="right" bgcolor="#cceaff"> > <b>Incident Ref No.</b> > </td> > </tr> > </table> > > > <table border="0" width=100% cellpadding="3" class="itemTable"> > <!--- Who Reported The Incident? ---> > <tr> > <td colspan="3" valign="top" align="left" bgcolor="#cceaff"> > <b>Information on those invloved - Victim(s)</b> > <br /><i>Complete as required</i> > </td> > </tr> > <tr> > <td colspan="3" valign="top" align="left" bgcolor="#cceaff"> > <b>Victim 1</b> > </td> > </tr> > <tr> > <td valign="top" align="left" bgcolor="#cceaff"> > Name > </td> > <td valign="top" align="left" bgcolor="#cceaff" colspan="3"> > <cfinput type="text" > size="65" > name="VictimName"> > </td> > </tr> > <tr> > <td valign="top" align="left" bgcolor="#cceaff"> > Year Group <br /> > <p> > <cfquery name="GetYearGroup" datasource="#application.racistDSN#"> > SELECT > YearGroupIDPK, > YearGroup > FROM tblYearGroups > </cfquery> > <Select name="E_YearGroupVictim" >onfocus="javascript:field_focus(this);" title="Please provide details >of the number of computers used by pupils that are under 5 years old"> > <cfoutput query="GetYearGroup"> > <option >value="#GetYearGroup.YearGroupIDPK#">#GetYearGroup.YearGroup#</option> > </cfoutput> > </select> > </p> > </td> > <td valign="top" align="left" bgcolor="#cceaff"> > Ethnic Group (Code) <br /> > <cfquery name="GetEthnic" datasource="#application.racistDSN#"> > SELECT > EthnicGroupIDPK, > EthnicGroupCode, > EthnicGroupDescription > FROM tblEthnicGroups > </cfquery> > <p> > <Select name="E_EthnicGroupVictim" >onfocus="javascript:field_focus(this);" title="Please provide details >of the number of computers used by pupils that are under 5 years old"> > <cfoutput query="GetEthnic"> > <option >value="#GetEthnic.EthnicGroupIDPK#">#GetEthnic.EthnicGroupCode#</option> > </cfoutput> > </select> > </p> > </td> > <td valign="top" align="left" bgcolor="#cceaff"> > Gender <br /> > <p> > <cfinput type = "Radio" name = "Gender" value = "0"> > Male > <cfinput type = "Radio" name = "Gender" value = "1"> > Female > </p> > </td> > </tr> > <tr> > <td valign="bottom" align="left" bgcolor="#cceaff"> > Religiously Motivated? <br /> > <p> > <cfinput type = "Radio" name = "ReligiouslyMotivated" value = "0"> > Yes > <cfinput type = "Radio" name = "ReligiouslyMotivated" value = "1"> > No > </p> > </td> > <td valign="bottom" align="left" bgcolor="#cceaff"> > Previos Victim? <br /> > <p> > <cfinput type = "Radio" name = "PreviousVictim" value = "0"> > Yes > <cfinput type = "Radio" name = "PreviousVictim" value = "1"> > No > </p> > </td> > <td valign="bottom" align="left" bgcolor="#cceaff"> > Member of Staff? <br /> > <p> > <cfinput type = "Radio" name = "StaffMember" value = "0"> > Yes > <cfinput type = "Radio" name = "StaffMember" value = "1"> > No > </p> > </td> > </tr> > <tr> > <td valign="bottom" align="left" bgcolor="#cceaff"> > Child NOT a member of School? <br /> > <p> > <cfinput type = "Radio" name = "NotSchoolMemberChild" value = "0"> > Yes > <cfinput type = "Radio" name = "NotSchoolMemberChild" value = "1"> > No > </p> > </td> > <td valign="bottom" align="left" bgcolor="#cceaff"> > Adult NOT a member of School? <br /> > <p> > <cfinput type = "Radio" name = "NotSchoolMemberAdlut" value = "0"> > Yes > <cfinput type = "Radio" name = "NotSchoolMemberAdult" value = "1"> > No > </p> > </td> > <td valign="bottom" align="left" bgcolor="#cceaff"> > Other relevant Details? <br /> > <p> > <Select name="OtherRelevantDetails" >onfocus="javascript:field_focus(this);" title="Please provide details >of the number of computers used by pupils that are under 5 years old"> > <option>Code 1</option> > <option>Code 2</option> > <option>Code 3</option> > <option>Code 4</option> > <option>Code 5</option> > </select> > </p> > </td> > </tr> > </table> > </td> > </tr> > <tr><td> </td></tr> > <tr> > <td align="right"> > <input name="clickme" type="submit" value="Next"> > </td> > </tr> > </table> ></cfform> > > <form name="Part3" action="RepeatVictim.cfm?id=11&rpt=1" method="post" >onsubmit="submitForm();"> > <input name="clickme" type="submit" value="Add Another Victim"> > </form> > ></p> > > >The add another victim does not pass the form variables ....The next >button works ok. > >Also how do I get the 'add another victim' button to appear to the left >of the next button.... > > >Regards - Paul > > >_______________________________________________ > >For details on ALL mailing lists and for joining or leaving lists, go >to http://list.cfdeveloper.co.uk/mailman/listinfo > >-- >CFDeveloper Sponsors:- > >- Hosting provided by www.cfmxhosting.co.uk -< > >- Forum provided by www.fusetalk.com -< > >- DHTML Menus provided by www.APYCOM.com -< > >- Lists hosted by www.Gradwell.com -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your > >help >-< > >********************************************************************** >This email and any files transmitted with it are confidential and >intended solely for the use of the individual or entity to whom they >are addressed and should not be disclosed to any other party. >If you have received this email in error please notify your system >manager and the sender of this message. > >This email message has been swept for the presence of computer viruses >but no guarantee is given that this e-mail message and any attachments >are free from viruses. > >Fife Council >Tel: 08451 55 00 00 >************************************************ > >_______________________________________________ > >For details on ALL mailing lists and for joining or leaving lists, go >to http://list.cfdeveloper.co.uk/mailman/listinfo > >-- >CFDeveloper Sponsors:- > >- Hosting provided by www.cfmxhosting.co.uk -< > >- Forum provided by www.fusetalk.com -< > >- DHTML Menus provided by www.APYCOM.com -< > >- Lists hosted by www.Gradwell.com -< > >- CFdeveloper is run by Russ Michaels, feel free to volunteer your > >help >-< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help >-< _______________________________________________ For details on ALL mailing lists and for joining or leaving lists, go to http://list.cfdeveloper.co.uk/mailman/listinfo -- CFDeveloper Sponsors:- >- Hosting provided by www.cfmxhosting.co.uk -< >- Forum provided by www.fusetalk.com -< >- DHTML Menus provided by www.APYCOM.com -< >- Lists hosted by www.Gradwell.com -< >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
