Jump to content

doublejz

New Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by doublejz

  1. Sorry forget the second link. Current non-recaptcha http://www.decal-kreations.com/ Recaptcha - Works but that loses all formatting/style http://decal-kreations.com/index2.php I also just added this one Recaptcha - with just the div class="g-recaptcha" data-sitekey="<?php echo SITE_KEY; ?>"></div> added but seems to break everything http://decal-kreations.com/index3.php
  2. It is a public site. The current non-recaptcha version is here. You'll obviously be able to see all the source except for the PHP post checks to submit the contact form, which should be irrelevant at this point. http://www.decal-kreations.com/ Any advise will be greatly appreciated.
  3. That is what I thought originally. However, no matter where I put <div class="g-recaptcha" data-sitekey="<?php echo SITE_KEY; ?>"></div> in the form, it stops loading the rest of the page once refreshed.
  4. Still learning PHP but about ready give up on this task. I'm trying to take an existing contact form for a user and add a simple captcha check box to it. However, the only way I can get it to work is by changing pretty much all the code around but then I lose the style/formatting. No captcha <form action="index.php" id="contact-form" method="post"> <ol class="forms"> <li> <label for="name">Name:</label> <?php if($nameError != '') { ?> <span class="error"><?=$nameError;?></span> <?php } ?> <input type="text" name="name" id="name" value="<?php if(isset($_POST['name'])) echo $_POST['name'];?>" class="required" /> </li> <li> <label for="email">Email:</label> <?php if($emailError != '') { ?> <span class="error"><?=$emailError;?></span> <?php } ?> <input type="text" name="email" id="email" value="<?php if(isset($_POST['email'])) echo $_POST['email'];?>" class="required" /> </li> <li class="textarea"><label for="textarea">Message:</label> <?php if($textareaError != '') { ?> <span class="error"><?=$textareaError;?></span> <?php } ?> <textarea name="textarea" id="textarea" rows="10" cols="30" class="required"><?php if(isset($_POST['textarea'])) { if(function_exists('stripslashes')) { echo stripslashes($_POST['textarea']); } else { echo $_POST['textarea']; } } ?></textarea> </li> </ol> <ol class="button-group"> <li> <div> <input type="hidden" name="submitted" id="submitted" value="true"> <input type="submit" value="Submit" class="submit"> </div> </li> </ol> </form> With captcha <form action="index2.php" id="contact-form" method="post> <form id="frmContact" action="" method="POST" novalidate> <div class="theme-default">Name:</div> <div class="field"> <input type="text" id="name" name="name" placeholder="enter your name here" title="Please enter your name" class="required"> </div> <div class="label">Email:</div> <div class="field"> <input type="text" id="email" name="email" placeholder="enter your email address here" title="Please enter your email address" class="required email"> </div> <div class="label">Comments:</div> <div class="field"> <textarea id="comment-content" name="content" placeholder="enter your comments here"></textarea> </div> <div class="g-recaptcha" data-sitekey="<?php echo SITE_KEY; ?>"></div> <div id="mail-status"></div> <button type="Submit" id="send-message" style="clear:both;">Send Message</button> </form> <div id="loader-icon" style="display:none;"><img src="img/loader.gif" /></div> </div> </form> Its probably something super simple as I'm still self learning PHP on the side but its driving me crazy trying to figure out how to keep the formatting/class/style/etc. TIA
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.