Without going and actually studying the code, yes, that looks like it's probably correct.
Without going and actually studying the code, yes, that looks like it's probably correct.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
That's good enough for me!Just wanted to make sure that the syntax looked correct.. (I looked at the login form for a little guidance after reading you hint)
Thanks again for the responses, and the awesome contribution!!! I hope the Zen Cart team enjoys the coffee I sent..![]()
Thanks!
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
If anyone is using the "CAPTCHA using TTF & GD" mod and wanted to add that CAPTCHA mod to the forms created from this mod here's down and dirty what I did:
In the form you created located in "includes/templates/YOUR_TEMPLATE/templates" find this:
Paste the following just above thisCode:</fieldset> <div class="buttonRow forward"><?php echo zen_image_submit(BUTTON_IMAGE_SEND, BUTTON_SEND_ALT); ?></div>
In your header_php.php located in "includes/modules/pages/YOUR_FORM" find this:Code:<?php // BOF Captcha if(is_object($captcha) && (!$_SESSION['customer_id'])) { ?> <br class="clearBoth" /> <?php echo $captcha->img(); ?> <?php echo $captcha->redraw_button(BUTTON_IMAGE_CAPTCHA_REDRAW, BUTTON_IMAGE_CAPTCHA_REDRAW_ALT); ?> <br class="clearBoth" /> <label for="captcha"><?php echo TITLE_CAPTCHA; ?></label> <?php echo $captcha->input_field('captcha', 'id="captcha"') . ' <span class="alert">' . TEXT_CAPTCHA . '</span>'; ?> <br class="clearBoth" /> <?php } // BOF Captcha ?>
Just below this add:Code:require(DIR_WS_MODULES . 'require_languages.php'); $breadcrumb->add(NAVBAR_TITLE);
Then find this:Code:// BOF Captcha if(CAPTCHA_CONTACT_US != 'false') { require(DIR_WS_CLASSES . 'captcha.php'); $captcha = new captcha(); } // EOF Captcha
And just above it paste this:Code:if ($error == false) { // grab some customer info if logged in if(isset($_SESSION['customer_id'])) {
I think this covers everything I did.. (Hopefully I didn't overlook anything) So far my testing shows this works just perfectly..Code:// BOF Captcha Validation if (is_object($captcha) && !$captcha->validateCaptchaCode()) { $error = true; $messageStack->add('customer_questionnaire', ERROR_CAPTCHA); } // EOF Captcha Validation
Here's the source I used: http://www.zen-cart.com/forum/showpo...&postcount=284
This post shows how to add the CAPTCHA to the Returns Authorization form, but it was pretty to adapt the instructions here to work with this form.. Hopefully someone else will find it useful too..
Spoke too soon.. Gotta figure out why when I am logged in the CAPTCHA does not display.. Hmmm..
Got it!! I picked up the wrong code from another post in the CAPTCHA support thread..
I've made the corrections to my original post.. (in bolded red)
FYI, where I have the text "your_form", this means you should use the same name as the form you created.. In the original file from DrByte I think this was "band_signup"
I think this covers everything I did.. (Hopefully I didn't overlook anything) So far my testing shows this works just perfectly..
Here's the source I used: http://www.zen-cart.com/forum/showpo...&postcount=284
This post shows how to add the CAPTCHA to the Returns Authorization form, but it was pretty to adapt the instructions here to work with this form.. Hopefully someone else will find it useful too..
Last edited by DivaVocals; 22 Jun 2009 at 10:03 AM.
Hi DrByte,
I am looking for a module to conduct surveys, where the client meets a series of questions and answers can be analyzed in the admin area.
Thanks
Rolando Maldonado
www.todoenguate.com
That would seem to be somewhat outside the scope of this discussion.
You might try the addons area, and search for "survey" or "poll" for potential ideas.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I ran across this when I was looking for an time slot calendar to put both on our ZenCart site and our blog.
It's a form generator that you could conduct polls with. You'd probably have to correlate your own data.
phpjabbers.com/contact-form/
They have a poll scripts also.
phpjabbers.com/php-poll/
Doug
So I need a little clarification.
I need to add a few radioboxes and some dropdowns. I have SCOURCED this forum for answers, and the closest I've come are these two threads:
http://www.zen-cart.com/forum/showpo...2&postcount=12
&
http://www.zen-cart.com/forum/showpo...34&postcount=2
The first link makes perfect sense to my non-coding brain, and would be easy for me to implement.
I couldn't get the second one to work. (the dropdown showed fine, but it was not populated) Since I am no coder, I am sorta stumped in trying to troubleshoot why I couldn't get it to work.
So here's my question. I was reading a post from DrByte (http://www.zen-cart.com/forum/showpo...93&postcount=2) that stated:
So if I understand this response correctly, I can add the following to my form:Quote:
Originally Posted by hyperspeed9
I need make the list using Zen Carts method so that I can pass whatever a custom selects to be included in the email that is sent upon submission.
Actually, you don't.
All you need to do is check the value of the $_POST['merchant_desired'] variable, since that's what's set when someone chooses something from the SELECT ... OPTION .... OPTION ... OPTION ... /SELECT list you built in HTML.
and as long as I configure my header_php.php file correctly, this should be okay.. Am I understanding this correctly??Code:<label class="inputLabelQuestions" for="question5">Have you had experience with premium hair?:<?php echo '<span class="alert">' . ENTRY_REQUIRED_SYMBOL . '</span>'; ?></label> <select name="question5" id="question5"> <option value="[Select One]">[Select One]</option> <option value="Yes">Yes</option> <option value="No">No</option> <option value="Not sure what premium hair is">Not sure what premium hair is</option> </select>
Code:if (isset($_GET['action']) && ($_GET['action'] == 'send')) { $contact1_firstname = zen_db_prepare_input($_POST['contact1_firstname']); $contact1_lastname = zen_db_prepare_input($_POST['contact1_lastname']); $contact1_phone = zen_db_prepare_input($_POST['contact1_phone']); $contact1_email = zen_db_prepare_input($_POST['contact1_email']); $contact2_phone = zen_db_prepare_input($_POST['contact2_phone']); $question1 = zen_db_prepare_input($_POST['question1']); $question2 = zen_db_prepare_input($_POST['question2']); $question3 = zen_db_prepare_input($_POST['question3']); $question4 = zen_db_prepare_input($_POST['question4']); $question5 = zen_db_prepare_input($_POST['question5']); $question6 = zen_db_prepare_input($_POST['question6']); $question7 = zen_db_prepare_input($_POST['question7']); $question8 = zen_db_prepare_input($_POST['question8']); $code = zen_db_prepare_input($_POST['code']); $comments = zen_db_prepare_input(strip_tags($_POST['comments']));
Last edited by DivaVocals; 27 Jun 2009 at 02:52 AM.