Hello!
I'm having a problem, hope someone can help me :D
I do create a form, with a email field.
//User field
TextField user_field = new TextField("e-Mail", "key_email", 230);
//Code omitted (...)
form_panel.add(user_field);
Then, a lot of code later (actually in the verification with the
database) I got this problem:
User email input: some.mail%40gmail.com
Database stored string: [email protected]
(There is no @, there is the (HTML code?) % 40)
So, logically, when I do:
String query = "SELECT Password FROM User WHERE eMail='" + email +
"'";
It finds nothing.
I use this function to get out the values from the form:
private Map<String, String> getUserData(Form form) {
String form_values = form.getValues();
Map<String, String> login_data = new HashMap<String, String>();
String[] value_pairs = form_values.split( "&" );
for (int i = 0; i < value_pairs .length; i++) {
String[] oneItem = value_pairs [i].split( "=" );
login_data.put(oneItem[0], oneItem[1]);
}
return login_data;
}
Any idea? Any help is welcome :D
Cheers!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---