Help with CF Code form signup

Discussion in 'Programming' started by leemyers, Nov 9, 2010.

  1. #1
    Hi i have this form below and i cannot get it to display as a .cfm file within I.E. and i also get this error The value of the FROM attribute is invalid. The length of the string, 0 character(s), must be greater than or equal to 1 character(s).


    I think there is some code missing but not sure what it is any help you be ace. P.S i have a online backup server so i could give you a free account for helping me!


    <!--- GetLanguage --->
    <cfquery name="qLanguage" datasource="#request.DSN#">
    Select LanguageID, LanguageCode, LanguageName from Language
    </cfquery>

    <!--- GetVersion --->
    <cfquery name="qVersion" datasource="#request.DSN#">
    Select VersionID, VersionName from Version
    </cfquery>

    <!--- GetTimeZone --->
    <cfquery name="qTimeZone" datasource="#request.DSN#">
    Select TimeZoneID, TimeZone from TimeZone
    </cfquery>

    <!--- GetType --->
    <cfquery name="qType" datasource="#request.DSN#">
    Select TypeID, Type from Type
    </cfquery>

    <!--- GetType --->
    <cfquery name="qClientType" datasource="#request.DSN#">
    Select ClientTypeID, ClientType from ClientType
    </cfquery>

    <!--- This Script Checks that the two password match and if they don't it returns user to complete again --->
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    function checkPw(form) {
    password = document.NewUser.Password.value;
    password2 = document.NewUser.ConfirmPassword.value;

    if (password != password2) {
    alert ("\nThe passwords you entered do not match. Please re-enter your password.")
    document.NewUser.Password.value="";
    document.NewUser.ConfirmPassword.value="";
    document.NewUser.Password.focus();
    return false;
    }
    }
    // End -->
    </script>




    <table width="350" border="0" align="center" cellpadding="10" cellspacing="5" bgcolor="#FFFFFF">

    <tr>
    <td width="50%" valign="top" bgcolor="#EFEFEF" class="TableTxt">

    <cfform action="insert-user.cfm" method="post" enctype="application/x-www-form-urlencoded" name="NewUser" preloader="no" format="html">
    <table align="center">

    <tr>
    <td nowrap="nowrap" class="FormTitleTxt">Display Name: </td>
    <td class="FormTitleTxt"><cfinput name="Alias" type="text" value="" required="yes" class="FormTxt" message="Please enter a Display Name"></td>
    </tr>
    <tr>
    <td nowrap="nowrap" class="FormTitleTxt">Password:</td>
    <td class="FormTitleTxt"><cfinput type="password" name="Password" required="yes" class="FormTxt" value="" message="Please enter a password" validate="noblanks"></td>
    </tr>
    <tr>
    <td nowrap="nowrap" class="FormTitleTxt">Confirm Password:</td>
    <td class="FormTitleTxt"><cfinput type="password" name="ConfirmPassword" required="yes" class="FormTxt" value="" message="Please confirm your password"></td>
    </tr>
    <tr>
    <td nowrap="nowrap" class="FormTitleTxt">Email:</td>
    <td class="FormTitleTxt"><cfinput type="text" name="Email" required="yes" class="FormTxt" value="" message="Please enter a valid email address" validate="email"></td>
    </tr>
    <tr>
    <td nowrap="nowrap" class="FormTitleTxt">Language:</td>
    <td class="FormTitleTxt"><cfselect name="LanguageID" class="FormTxt" query="qLanguage" value="LanguageID" display="LanguageName" selected="19"></cfselect></td>
    </tr>
    <tr>
    <td nowrap="nowrap" class="FormTitleTxt">Operating System:</td>
    <td class="FormTitleTxt"><cfselect name="VersionID" class="FormTxt" query="qVersion" value="VersionID" display="VersionName" selected="2"></cfselect></td>
    </tr>
    <tr>
    <td nowrap="nowrap" class="FormTitleTxt"></td>
    <td class="FormTitleTxt" align="right"><cfinput type="submit" name="Save" class="FormTxt" onClick="return checkPw(this)" value="Sign Up"></td>
    </tr>
    </table>

    </cfform>

    </td>
    </tr>
    </table>
     
    leemyers, Nov 9, 2010 IP
  2. fardesi

    fardesi Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    thank for the free backup offer... it looks like the error is inside your insert-user.cfm file... could you please provide that.
     
    fardesi, Jan 18, 2011 IP