PDA

View Full Version : got complex html email forms?


gabrielcrowe
28-Jul-2008, 08:32 AM
From all my travels, this is the most beautiful mail 'form form' designer, i have ever seen.

http://www.appnitro.com

a visual form designer, and stores the data in an online db, as well as mails it on.

and i'm not on commission, honest.

dave_finlayson
28-Jul-2008, 08:48 AM
Very nice, file upload as well which I have mulling over adding to one of our sites if I ever found a reliable way of doing it, might have to go investigate!

gabrielcrowe
28-Jul-2008, 09:57 AM
here is a form designed in this software:

http://www.tactical-firearms-academy.co.uk/machform/view.php?id=1

from download, to completion, it took 30 mins.

dave_finlayson
28-Jul-2008, 09:59 AM
Looks good Gabriel. One thing, do you know if this can be embedded in an Actinic page (all parsed as PHP) with relative ease?

gabrielcrowe
28-Jul-2008, 12:14 PM
it can.

change your page's extension to php, and follow the 'embedding' instructions for each designed form.

easy.

you can embed with a php snippet, or if you cant use php, an iframe.

all code is generated for you.

Darren B
28-Jul-2008, 12:51 PM
cool gabe, can it have any form of captcha, mind yours is a little complex for most spammers

gabrielcrowe
28-Jul-2008, 01:08 PM
yes, it has a very good captcha, however, I turned that off in my example.

chris ashdown
28-Jul-2008, 01:35 PM
Does it capture JPG and other vector graphic files?

dave_finlayson
29-Jul-2008, 09:01 AM
Chris,

Yes, that's exactly what I need it for. Just tried with .jpg, .ai, .eps and .cdr and all uploaded fine. I suspect you can upload anything in it's current format but I notice from the site you can amend the PHP and place restrictions on what can be uploaded.

CymraegKev
29-Jul-2008, 11:26 AM
I've not looked at this to be fair, but I'm asuming its a hosted service on the vendors servers? Always fills me with dread if their service goes down.

Kevin

dave_finlayson
29-Jul-2008, 11:28 AM
No, you host it yourself, I wouldn't touch it if it was hosted for the same reason.

CymraegKev
29-Jul-2008, 11:33 AM
Ah! Nice one.

gabrielcrowe
29-Jul-2008, 11:41 AM
...and neither would I. You should know me better. :D

Bonjour
25-Aug-2008, 06:58 PM
Hi Gabe

Thanks for the form info and it looks good. I am new to adding forms and I want to add a form to some of my product pages to gather some info and in some cases for customers to upload an image - would this form work in this way and if so would it print out with the order or do I get an email with the info? If I get an email, how would I tie that up with the approprate order.

I did try to put a form in, but couldn't get it to work (8.5.2).

Sorry for all the questions, but you seem to be an expert on this forum.

Thanks

dave_finlayson
25-Aug-2008, 08:24 PM
Helen,

While the form will let you upload an image there is not really any way to tie it to an order <here gabe steps in and proves me wrong probably>. You would be better using Normans image upload script over at drillpine.biz.

gabrielcrowe
26-Aug-2008, 08:26 AM
tie it to an order

You could use javascript to push the product number into one of the fields, and then hide the field. There would be no way to tie it to any order.

This would require extra programming, obviously, and isnt part of the package.

RuralWeb
26-Aug-2008, 09:03 AM
norm has a plugin which would work better if you need the image tied to the order.

Paul Cooper
23-Sep-2008, 12:13 PM
Just a quick note to say thanks to Gabe for the link to MachForm, even I managed to integrate the form into my site and that's saying something - http://technobots.co.uk/acatalog/Application_Form.html

Goz
23-Sep-2008, 12:18 PM
Absolutely - thanks, Gabriel, for the link.

Appnitro have a special offer on 'till the end of the month. Unlimited site licenses for £109. Might be a bargain for developers.

Golf Tee Warehouse
24-Oct-2008, 12:30 PM
I am trying unsuccesfully to embed the form code into an Actinic page, any ideas where I am going wrong.

I have renamed the page from pricematch.html to pricematch.php and inserted the following code as given by appnitro (Machform) into a fragment:

!!<
<actinic:block php="true">
<?php
require("/home/dguppy/public_html/machform/machform.php");
$mf_param['form_id'] = 1;
$mf_param['base_path'] = 'http://www.golfteewarehouse.co.uk/machform/';
display_machform($mf_param);
?>
</actinic:block>
>!!

but it gives the following error Parse error: parse error in main on line 2

It works OK on a non-actinic page uploaded using separately, here: http://www.golfteewarehouse.co.uk/formtest.php

Golf Tee Warehouse
24-Oct-2008, 11:02 PM
I have now managed to get it onto the page by putting the following code into a fragment:
!!<
<actinic:block php="true" >
echo file_get_contents('http://www.golfteewarehouse.co.uk/pricematchform.php');
</actinic:block>
>!!

It seems to work (although not fully tested), is there any reason why I shouldn't use this?
Are there any better ways?

Golf Tee Warehouse
28-Oct-2008, 09:28 AM
On testing the above I have discovered that although the form displays OK, nothing happens when you click on Submit.

Can anybody who has implemented this form successfully briefly explain the code they used.

It works here: http://www.golfteewarehouse.co.uk/pricematchform.php

but not here: http://www.golfteewarehouse.co.uk/acatalog/test/acatalog/PriceMatch.php

Goz
28-Oct-2008, 10:05 AM
I've implemented it on a couple of sites now without problem but I did it using the iframe code they supply.


I'm off out now - I'll take a look at your forms later this afternoon (assuming I've not been beaten to it).

Golf Tee Warehouse
28-Oct-2008, 10:52 AM
Thanks,

I have just tried the iframes method which worked first time, see here: http://www.golfteewarehouse.co.uk/acatalog/test/acatalog/formtest.html

Is there anyt reason why I shouldn't use the iframe method? I am not worried about google indexing that particular page, but would like to ensure that the form is compatible with atleast 99% of customers.

pinbrook
27-Apr-2010, 10:17 AM
Just wondering if anyone got this working with the php code provided by machform.

I'd prefer to use the php rather than the iframe.

dave_finlayson
27-Apr-2010, 10:20 AM
Jo,

Yeah no problem at all. Is it not working?

pinbrook
27-Apr-2010, 11:06 AM
I'm putting the code in a brochure fragment - what code do i wrap around the php provided by mach?

mach provide<?php
require("/xxx/local/home/xxx/xxx.co.uk/machform/machform.php");
$mf_param['form_id'] = 2;
$mf_param['base_path'] = 'http://xxx.co.uk/machform/';
display_machform($mf_param);
?>

i'm not sure where to put it! :rolleyes:

dave_finlayson
27-Apr-2010, 11:10 AM
This works for me

!<<?php
require("");
$mf_param['form_id'] = 1;
$mf_param['base_path'] = '';
display_machform($mf_param);
?>>!!

I've removed the require and base_path as they'll be specific to you. Also, the page needs to have a .php extension, obviously.

pinbrook
27-Apr-2010, 11:22 AM
also, the page needs to have a .php extension, obviously. doh ............ :)

So to clarify - yes you can use the php provided by Mach, just stick the code in a fragment, wrap it in !!< put code here >!! and change page name to .php

Simples!

dave_finlayson
28-Apr-2010, 09:35 AM
doh ............ :)

Been there, done that!