I am trying to take the information in the contact form and have it populate a csv file or database instead of an email - is this possible?
I am trying to take the information in the contact form and have it populate a csv file or database instead of an email - is this possible?
I have the above form working. Now I want to add a second drop-down menu for a different form field. I added the code to the header_php.php but all that did was put the fields for both drop-down menus in both.
How do I end one drop-down and start a new one?
My code is...
// Pulldown to select a size
// Set default selection:
$default_pulldown_selection = '0';
//For validation, you're looking for the contents of the $_POST['size'] variable
// this is only set after "submit" is clicked.
$pulldown_selected_item = (isset($_POST['size'])) ? $_POST['size'] : $default_pulldown_selection ;
//build an array of entries to be displayed on the template for field 'size':
$pulldown_contents[] = array('id'=>'0', 'text'=>'Please Select');
$pulldown_contents[] = array('id'=>'standard', 'text'=>'Standard');
$pulldown_contents[] = array('id'=>'large', 'text'=>'Large');
// Pulldown to select a color
// Set default selection:
$default_pulldown_selection = '0';
//For validation, you're looking for the contents of the $_POST['color'] variable
// this is only set after "submit" is clicked.
$pulldown_selected_item = (isset($_POST['color'])) ? $_POST['color'] : $default_pulldown_selection ;
//build an array of entries to be displayed on the template for field 'color':
$pulldown_contents[] = array('id'=>'0', 'text'=>'Please Select');
$pulldown_contents[] = array('id'=>'red', 'text'=>'Red');
$pulldown_contents[] = array('id'=>'blue', 'text'=>'Blue');
I think I would have to put some code between these two lines to end one drop-down and start the next.
$pulldown_contents[] = array('id'=>'large', 'text'=>'Large');
End first drop-down
Start second drop-down
// Pulldown to select a color
in the file tpl file I have
<label class="inputLabel" for="size">Select a Size Request:</label>
<?php echo zen_draw_pull_down_menu('size', $pulldown_contents, $pulldown_selected_item); ?>
<br class="clearBoth" />
<label class="inputLabel" for="color">Color:</label>
<?php echo zen_draw_pull_down_menu('color', $pulldown_contents, $pulldown_selected_item); ?>
<br class="clearBoth" />
Can anybody tell me how to seperate the two drop down box contents? At the moment both boxes have a choice of
Standard
Large
Red
Blue
I would like the first drop-down to have a choice of Standard and Large and the second drop-down choice of Red and Blue
I'm running version 1.3.9 and noticed that there has not been any questions recently, but I will try this anyhow.
I created all the files and place them where the folders indicated but I can't open the form.
I have purchased and installed a template so could this have an impact as to where the forms come from? Also, could I use the "Create Account" form and do the same? What if I want to replace the "contact us" link on the header and point to my new form instead? What do I do with the Java script? It seems to point to the contact us form when that's not what I want.
I'm new to the whole ZenCart community and technology so please forgive me for my ignorance.
Thanks.
![]()
Bookmarks