Open Lai0723 opened 7 years ago
So I just designed the layout for the add to cart and it contain few box such as name, quantity, remove. Now I working on the behind code.
For me i just finished design for the payment layout part, and now i designing the thank you page .
I take boon seng layout and now doing the validation for the text box. I have a question how to validate the user visa or master card number are correct?
Erm, for that I think you should validate the length of the card number?
Not only length, you need to validate the first number of the card number such as visa is "5" and master is "4".
I disagree with you kar chen, actually the first number of the Visa card is "4" not "5". Boon seng did you use the radio button for the user to choose the payment type?
Ya, I did but why you ask that?
Because in that case benjamin you can write a code that to validate user is using master or visa.
Can you further explain it?
Maybe like this when user choose the visa radio button the validation for the card number should be "4" and "5" for the user that choose master card radio button?
Ya, this is what I mean
Then you should use if else case for that.
Ya I notice that, by the way thanks for the idea.
Anymore problem so far?
Since I still working on the coding and no problem so far.
I still working on the thank you page and no problem so far to.
I think i just asked i wanted to know and now i will go try do the validation.
If no problem I think that's all for today meeting, everyone can dismiss now.
So how was the progress?