1107 comments found

  • Bought between 100 and 499 items
  • Has been a member for 5-6 years

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

  • Bought between 1 and 9 items
  • Has been a member for 0-1 years
krnworld Purchased

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

  • Bought between 1 and 9 items
  • Has been a member for 0-1 years

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!

  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
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

  • Bought between 1 and 9 items
  • Has been a member for 0-1 years

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

  • Bought between 1 and 9 items
  • Canada
  • Has been a member for 0-1 years

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

  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
oagne Purchased

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

by
by
by
by
by
by