Results 1 to 2 of 2

Thread: acces DB asp&wml...sound bad aaa?:)

  1. #1
    Join Date
    May 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question acces DB asp&wml...sound bad aaa?:)

    IíM BAD IN ASP AND IíM BEING PUNISHED NOWJ
    Please help meJ
    I wrote a code that stores info during WML registration in an access database using asp.
    The problem have to be in the code cause the mime is okÖ

    Wml file:
    Code:
    <% response.ContentType = "text/vnd.wap.wml" %> 
    <?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
    "(URL address blocked: See forum rules)">
    
    <wml>
    <card id="personalDetails" title="Register">
    
    	
    <p align="center"><b> Personal Details </b></p>
    
    <p>
    
    <b>FIRST Name:</b> <input name="varFName" type="text" />
    <b>LAST Name:</b> <input name="varLName" type="text" />
    <b>Gender:</b> <br/>
             <select name="varGender"> 
    	  <option value="Male">Male</option>
              <option value="Female">Female</option>
             </select>
    </p>
    
    
    
    <p align="center">
    
    <do type="accept" label="Confirm Info">
    	<go href="logreg.asp" method="get">
    		<postfield name="F_Name" value="$(varFName)" />
    		<postfield name="L_Name" value="$(varLName)" />
    		<postfield name="G_ender" value="$(varGender)" />
            </go>
    </do>
    </p>
    
    </card> 
    </wml>


    asp file:
    Code:
    <%@ Language = "VBScript"%><?xml version="1.0"?>
    <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
    "(URL address blocked: See forum rules)">
    
    
    <wml>
    <card id="login" title="W@P CHAT - Login">
    
    <p align="center">
    
    Thank you for entering your details. <br/>
    Now you can login below!
    
    </p>
    
    
    <%
    
    DIM CONNECT,DBCONN,SQL
    CONNECT="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("../../database/USERMAN.MDB")
    Set DBCONN=Server.CreateObject("ADODB.Connection")
    DBCONN.OPEN CONNECT
    
    DIM rsUserAdd
      Set rsUserAdd = Server.CreateObject("ADODB.Recordset")
    
    
    
    DIM FNAME,LNAME,GENDER
    rsUserAdd.open "users", dbconn, 3, 3	
    
    
    FNAME		=	REQUEST.FORM("F_NAME")
    LNAME		=	REQUEST.FORM("L_NAME")
    GENDER		=	REQUEST.FORM("G_ENDER")
    
      rsUserAdd.AddNew
      rsUserAdd("FNAME")		=	FNAME
      rsUserAdd("LNAME")		=	LNAME
      rsUserAdd("GENDER")		=	GENDER
    
        rsuserAdd.Update
      rsUserAdd.CLOSE
      SET rsUserAdd = NOTHING
      %>
    
    </p>
    </card>
    </wml>

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Only post your question one time. It will be seen and answered in this thread.
    http://www.dynamicdrive.com/forums/s...ad.php?p=93126
    Daniel - Freelance Web Design | <?php?> | <html>| espaŮol | Deutsch | italiano | portuguÍs | catalŗ | un peu de franÁais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •