what does <cfdump var="#Form#"> give you?



                                                                                       
                            
                    "Matt Horn"                                                        
                            
                    <[EMAIL PROTECTED]        To:     <[EMAIL PROTECTED]>              
                       
                    rn.org>              cc:                                           
                            
                                         Subject:     [ cf-dev ] Belated Monday 
stupidness                         
                    06/07/2004                                                         
                            
                    10:25                                                              
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    dev                                                                
                            
                                                                                       
                            
                                                                                       
                            



Hi

 I am tearing my hair out with this:

I have a form that posts back to itself  but it seems like there are no
form variables being posted .

the code below is on top of the page and this is the form

can anyone see where I am bolloxing it up?

thanks
 Matt

<form name="LoginForm" method="post" action="Login.cfm" >
      <table border="0" align="center">
      <tr>
       <td class="show">Username&nbsp;:</td>
     <td ><input type="text" name="username" class="inputbox"></td>
      </tr>
      <tr>
       <td class="show">Password&nbsp;:</td>
     <td ><input type="password" name="pass" class="inputbox"></td>
      </tr>
      <tr>
       <td ><input type="submit"  class="inputbutton" value="login"></td>
     <td ><input type="reset" value ="Clear" class="inputbutton"></td>
      </tr>
      </table>
      </form>



<cfif isdefined("form.pass")>
 <cfquery name="getdetails" datasource="#db#"  dbtype="odbc">
      SELECT userId,productionhouseId from tbluser
      where username='#form.username#'
      and password ='#form.pass#'
 </cfquery>

 <CFIF getdetails.recordcount GTE 1>
     <cflock scope="session" timeout="10">
      <cfset session.userId=getdetails.userID>
      <cfset session.productionhouseID=getdetails.productionhouseID>
 </cflock>
      <cflocation url="Add.cfm">
  <CFELSE>
      <script language="JavaScript">
          alert('The username password combination you supplied is
incorrect');

      </script>
 </CFIF>
 </cfif>



|\--------------------/|
Matt Horn
Web Applications Developer
Ph:+2782 424 3751
W: http://www.matt-horn.org
E:[EMAIL PROTECTED]
|\--------------------/|




-- 
These lists are syncronised with the CFDeveloper forum at 
http://forum.cfdeveloper.co.uk/
Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
 
CFDeveloper Sponsors and contributors:-
*Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by 
activepdf.com*
      *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com*
           *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com*

To unsubscribe, e-mail: [EMAIL PROTECTED]

Reply via email to