How to add contact form?

bormos

No avatar

2009-03-27 10:18

I have downloaded a free version of contact form, contact.php and i would like to add this to my contact page.
How should i proceed?

Tnx in advance.

» Quick.Cart v3.x

cgan

Avatar: cgan

2009-03-27 14:33

You can try something like this in short description (in HTML-mode or with WYSIWYG editor set to "No"):
<iframe src="yourdirectory/contact.php" style="width:400px;height:300px;border:none;overflow:hidden;"></iframe>

cgan

cachousam

Avatar: cachousam

2009-03-28 14:41

Hi cgan
can you contact me on
dominique.faure21@free.fr

bormos

No avatar

2009-03-30 20:47

Tnx for your reply.
Are there any other alternatives, like calling it from template? I dont really like to have iframes on my site.

cgan

Avatar: cgan

2009-03-30 22:22

Yes you can copy pages_default.tpl rename it to e.g. pages_withform_default.tpl and add an include function something like this:
<div class="content" >$aData[sDescriptionFull]</div>
<div id="myform"> <?php include 'yourdirectory/contact.php'; ?></div>
Put an id name to it so you can style it in css later.
Then choose this template in admin/pages/view for the page you want to have your.

By the way what's wrong with iframes?

cgan

bormos

No avatar

2009-04-03 23:10

Tnx, thats what i was looking for.
It's not that i personally dislike iframes; there are security issues involved, like xss and frame hijacking.

Back to top
about us | contact