1. LeloTheGreat's Avatar
    Hi guys

    I need a little help with coding a user signup form; where my Screen's field component's values will be written to my MySQL database.

    Regards
    Lelo
    09-05-11 08:15 AM
  2. jonathon.94's Avatar
    Maybe some sort of web script that transcodes the apps results to msql
    09-05-11 05:08 PM
  3. LeloTheGreat's Avatar
    Hmm, I any idea how eactly?
    My problem is printing the values to MySQL db. Here's what I have so far..





    package com.YYK;

    import net.rim.device.api.ui.container.FullScreen;
    import net.rim.device.api.ui.component.*;
    import net.rim.device.api.ui.container.*;
    import net.rim.device.api.ui.*;

    public class RegScreen extends FullScreen {

    /**
    *
    */
    public RegScreen() {
    super(FullScreen.VERTICAL_SCROLL | FullScreen.VERTICAL_SCROLLBAR);
    // TODO Auto-generated constructor stub
    //setTitle("YYK GO");
    //FullName
    LabelField lblFullName = new LabelField("Full name:");
    add(lblFullName);
    BasicEditField befFullName = new BasicEditField();
    add(befFullName);
    add(new SeparatorField());
    //Username
    LabelField lblUsername = new LabelField("User name:");
    add(lblUsername);
    BasicEditField befUsername = new BasicEditField();
    add(befUsername);
    add(new SeparatorField());
    //Password
    LabelField lblPassword = new LabelField("Password:");
    add(lblPassword);
    PasswordEditField pefPassword = new PasswordEditField();
    add(pefPassword);
    add(new SeparatorField());
    //Email
    LabelField lblEmail = new LabelField("Email:");
    add(lblEmail);
    BasicEditField befEmail = new BasicEditField();
    add(befEmail);
    add(new SeparatorField());
    //Country
    String choices[] = {"South Africa","Uganda","Swaziland","Zambia"};
    int iSetTo = 0;
    add(new ObjectChoiceField("Country",choices,iSetTo));
    //City
    LabelField lblCity = new LabelField("City:");
    add(lblCity);
    BasicEditField befCity = new BasicEditField();
    add(befCity);
    //btnLogIn
    ButtonField btnLogIn = new ButtonField("Log In");
    add(btnLogIn);



    }

    }
    
    09-06-11 08:09 AM
LINK TO POST COPIED TO CLIPBOARD