joongpark Posted August 14, 2010 Posted August 14, 2010 This may sound strange but I want oscommerce to load all customers email address from database and allow customers to select their email from drop down list when they log into their account instead of filling it out. I am using Oscommerce for wholesale and I only have a few customers who order from us and it will remain that way. Instead of having them type in their email address when they login, I would like "email address" field in login.php to be automatically populated with email address from the database with drop down box. I would appreciate any coding help you can provide and thanks to the community for such a wonderful program. Kevin.
germ Posted August 14, 2010 Posted August 14, 2010 Not a good idea (IMHO). First, your letting other email addy's being available to anyone who visit the page. Some (including me) don't like that being "public information". I'll give my email addy out only to those I want to have it. Second and most importantly you're opening all your customers up to spambots. There are thousands of spambots working 24/7/365 just combing web pages harvesting email addy's to be spammed. Ask your customers if they like the idea of their email addy being made public, and if they enjoy being spammed. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Guest Posted August 14, 2010 Posted August 14, 2010 How were you planning to make this happen? Did you want your userse to type in a user name and then select their email address from a pop-up list? Did you want all users to have access to all emails and then select from a list? I would be more than happy to help. I do agree that you do not want to automatically populate the email address when anyone hits the page because that can be automatically extracted. Thanks
burt Posted August 14, 2010 Posted August 14, 2010 The way to do this would be to have the input box linked to ajax script that returns the email as the person types it in. But if you do want a drop down box full of every customers email, that is not difficult. Follow the instructions here; http://www.oscommerce.com/forums/topic/342527-how-to-create-a-drop-down-selection-menu/ and amend for email addresses from the customers* table.
joongpark Posted August 14, 2010 Author Posted August 14, 2010 Hi. Thank you for your advise and concerns. I do not know who to code so I am not sure how to code it. As for richmolumby's question, I would like username (which is email) to be populated with all user's email addresses from the database on dropdown list so that customers can just click the down arrow and choose their email from the list. I appreciate all your help. Thank you.
joongpark Posted August 14, 2010 Author Posted August 14, 2010 The way to do this would be to have the input box linked to ajax script that returns the email as the person types it in. But if you do want a drop down box full of every customers email, that is not difficult. Follow the instructions here; http://www.oscommerce.com/forums/topic/342527-how-to-create-a-drop-down-selection-menu/ and amend for email addresses from the customers* table. http://www.oscommerce.com/forums/topic/342527-how-to-create-a-drop-down-selection-menu/ This is exactly what I want to do...I want to fill the drop down with all emails from the customers database. I played around with the code but I was not able to make it work. I would appreciate any help with coding. Thank you. Kevin.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.