egweimai Posted June 4, 2010 Posted June 4, 2010 Hello, I want to create a contact form that links from a a product info page (when people are actually on a product's page). However, I want the contact form to have one of the field's as the product's name that the user is on..... Any ideas as how to achieve this? :) Thanks
germ Posted June 5, 2010 Posted June 5, 2010 If you want to "pre-populate" a field it's something like this: <?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15,'Ask me something'); ?> On a normal osC contact us page that code pre-populates the enquiry field with the text Ask me something. 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 >
♥joli1811 Posted June 5, 2010 Posted June 5, 2010 Hello, I want to create a contact form that links from a a product info page (when people are actually on a product's page). However, I want the contact form to have one of the field's as the product's name that the user is on..... Any ideas as how to achieve this? :) Thanks Hi, Think there are also a few contributins that will do that http://addons.oscommerce.com/info/5368 Or http://addons.oscommerce.com/info/6675 depending on what you want. John To improve is to change; to be perfect is to change often.
♥joli1811 Posted June 5, 2010 Posted June 5, 2010 If you want to "pre-populate" a field it's something like this: <?php echo tep_draw_textarea_field('enquiry', 'soft', 50, 15,'Ask me something'); ?> On a normal osC contact us page that code pre-populates the enquiry field with the text Ask me something. ******** W A R N I N G ! ******************************* Internet Explorer should not be used by those under the influence of Microsoft. as it may cause vertigo. Consult your local tech support before using Internet Explorer. (Note: If after using Internet Explorer you experience discomfort using Internet Explorer discontinue use of Internet Explorer immediately and use Firefox instead!) ******************************* W A R N I N G ! ******** Just a thought regards John To improve is to change; to be perfect is to change often.
egweimai Posted June 5, 2010 Author Posted June 5, 2010 thanks for the info guys, will have to go away and play around! :)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.