1117 comments found

Hello,

I was wondering. People can upload a photo in the form with the “file upload”. How can i match the filename with the entered data from a user when i save all in the database. Can i save the filename also in the database?

Thanks, Rogier

ThemeCatcher

Hi

Yes people can upload a photo using Quform. You can insert the filename and/or file URL in the same row as the other form data in the database table. We have some sample code for insert simple text fields into the database, for file uploads you’d need some extra code like this to insert the filename, this code would add to the original example query, make sure it goes above the query line ending in a semi colon:

$file = $form->getValue('upload');
$filename = isset($file[0]['filename']) ? $file[0]['filename'] : '';

$query .= "`filename` = '" . mysql_real_escape_string($filename) . "',";

Regards Ally

Ca it be used in code igniter? please reply.

ThemeCatcher

Yes I believe so, as long as you can put the HTML and links to the CSS and JS files on the page it will work.

Regards, TC

I am getting the following error when I hit the submit button:

There was a problem Not Found The requested URL /files/web-files-SS/quform/process.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

ThemeCatcher

Can you check that the FORM tag action attribute points to the correct path of the process.php file, and that the file exists on the server.

Regards, TC

Default-user

That took care of it, thank you!

jonwish Purchased

Hi, Is it possible to add a “copy to my email address” tick box on the form.

Thanks for a fantastic, easy to use contact form. Very much appreciate the effort you have put in to this script.

ThemeCatcher

Add a checkbox to your form (here is some sample HTML):

<div class="quform-element quform-element-checkbox">
    <div class="quform-spacer">
        <div class="quform-input">
           <label for="send_copy_to_user"><input id="send_copy_to_user" name="send_copy_to_user" value="1" type="checkbox" /> Send me a copy of the form</label>
        </div>
    </div>
</div>

Add this code to process.php to register the checkbox with the form:

$sendCopyToUser = new Quform_Element('send_copy_to_user', 'Send me a copy of the form');
$form->addElement($sendCopyToUser);

In the process.php file make sure the autoreply is active:

$config['autoreply'] = true;

And that this setting has the unique name of your Email field between the % signs:

$config['autoreplyRecipient'] = '%email%';

Now change this line of process.php:

if ($config['autoreply']) {

To this:

if ($config['autoreply'] && $form->getValue('send_copy_to_user') == '1') {

It will check if they have ticked the box before sending the autoreply email. You can then copy the contents of the emails/notifiction.php file into emails/autoreply.php to send them all the form data.

Regards, TC

Sorry; need to go to wordpress quform plugin. Oops!

Hi, Before i buy it, a simple question: Easy way to configure a multi checkbox or radio button as subject? Thanks, Fab

ThemeCatcher

I assume you mean the email subject? In the process.php file you can set the subject like this:

$config['subject'] = 'Message from %name%';

Where name is the unique name of the field, it will be replaced with the submitted form data and will work which checkboxes and radio buttons.

Regards, TC

blondbear

Thanks TC. The recipient will be defined in the script and the person using the form will be able to choose one or more subjects through a multi checkbox. Is that doable with your code above? I am afraid it is not possible you can only have 1 subject, right?

ThemeCatcher

You can only have one subject string, but you could join multi checkbox values with a comma, that is what this would do:

$config['subject'] = '%my_multi_checkbox_name%';

Regards, TC

oagne Purchased

Captcha in demo is one static image. can be captcha random any 4-6 characters? Thank you

ThemeCatcher

There is some help for this in the documentation, see these sections:

Changing the CAPTCHA image, Using reCAPTCHA, Using a custom CAPTCHA

Regards Ally

AndyR14 Purchased

Hi,

How do i align this form to the center of the page?

Thanks

ThemeCatcher

You can apply it to all forms by adding this code to any stylesheet on the page:

.quform-outer {
    width:400px;
    margin: 0 auto;
}

Or to apply to a single form you can use styles to center it:

div class="quform-outer quform-theme-light-rounded" style="width:400px;margin: 0 auto;">

Regards, TC

Hi,

I am stuck. The form is doing absolutely nothing. I doubled checked but cannot find a reason… Could send you the url offline. Thank you.

ThemeCatcher

Send us a message to info@themecatcher.net with the link.

Regards, TC

pjfierro Purchased

Something is working funky with my forms. the site is cyber-struct.com please let me know why this is happening

ThemeCatcher

The closing textarea tag is missing from this part of the form:

textarea id="message" name="message" style="height: 130px;"

Also check the bottom of the page source, unless you added those links I would say you have been hacked.

Regards, TC

Default-user
pjfierro Purchased

I looked at the source and i did not add those links. How do I fix it ?and how do I prevent it from being hacked?

ThemeCatcher

You should be able to remove the links by editing the HTML page. I recommend you change your FTP / hosting password. If it happens again contact your host. The links appear to be at the bottom of every page.

Regards, TC

Hi,

I use quform on an html site. I have another plugin which I have used on a wordpress site and this offers a honeypot option.

Is it possible to add honeypot anti-spam protection to quform for html sites? I used your image-based captcha and have found I still get plenty of spam from seo scumbags, and I hate conventional captcha boxes – I can never get the damn things right.

Thanks.

ThemeCatcher

Hi

I made a validator this here. Download that file and upload to lib/Quform/Validators/

Add this HTML inside the FORM tag:

<input type="text" name="field" class="quform-hidden">

Add this code to the process.php file:

$honeypot = new Quform_Element('field');
$honeypot->addValidator('honeypot');
$honeypot->setIsHidden(true);
$form->addElement($honeypot);

Regards, TC

Default-user

Exceptional, thank you!

jdavilah Purchased

Hi!

I have a question… How I make a new folder with every new fill form for uploaded files?

For example… I upload a few files, but all files are in the same server folder with other uploaded files, I want to make a new folder with my name $name.

Help me please.

Regards Jorge Davila

Default-user
jdavilah Purchased

But this solution its for wordpress and I dont have wordpress… Works for me???

Default-user
jdavilah Purchased

I dont have the wordpress plugin

ThemeCatcher

Hi

The code to save the upload is in the quform\lib\Quform\Element\File.php file at the saveUpload function. You can change this code to add submitted data to the path. For example to get the submitted name here, you can use this code:

$name = $element->getForm()->getValue('name');

Regards, TC

Can you please explain how to add the jquery widget datepicker that is now bundled with dreamweaver?? What do I have to change to make sure it works when mailing etc….....

ThemeCatcher

I’m not familiar with the bundled widgets in Dreamweaver. You’ll need the Datepicker JS and CSS included on the page.Then you can apply it to a Text input field by adding this code to your page:

 <script>
$(function() {
    $( "#my-date-field" ).datepicker();
});
</script>

Where your input has the id “my-date-field”.

Regards, TC

I have tried Evrything possible with this form to save data to mysql db!! Really wish I had know it would be this difficult before buying this. Have followed all documentation word for word! Have looked at your forums also.. how can I get assistance with this?

ThemeCatcher

Could you send us the process.php file along with details of the error message you are getting to info@themecatcher.net

Regards, TC

Default-user

My apologies ThemeCatcher, it was totally my fault, it was a server issue.. Fixed the issue, and it worked like a charm!!

Hi I was lead here by a google search looking at how to create a form layout I saw on a web site. Is this form layout possible with this product or was this form created with this product? http://couleecreative.com/ Scroll down to the contact form. I am mainly looking at creating the custom select buttons (see the budget selector).
ThemeCatcher

Hi

Yes it looks like that form was created using Quform. The budget selector is custom though – they have custom JavaScript that is creating this effect. We aren’t available for this type of customisation so you might need a developer to do this for you.

Regards, TC

I have one pre-sale question:

In your examples, the required error message is always the same (“This field is required”). Could I put a different error message for each field of the form?

ThemeCatcher

Sure. It’s explained in the documentation section: Changing the required error message – “This field is required”

Regards, TC

sriwirat Purchased

Hi,

I want to create thumbnail when upload photo , how can I do that ?

Thank you

ThemeCatcher

Hi

You’ll need some PHP development for this. You can add the code in the process.php file at // Custom code section #2. You can get the path to the uploaded file using this code (assuming your upload field is named ‘upload’):

$upload = $form->getValue('upload');
if (isset($upload[0])) {
    $file = $upload[0]['path'];
    // Create thumbnail from $file
}

The code to create a thumbnail is outside the scope of our support, you may need a PHP developer for this.

Regards, TC

by
by
by
by
by
by