Welcome, Guest

PHP and Image in quickmode form
(1 viewing) (1) Guest

TOPIC: PHP and Image in quickmode form

PHP and Image in quickmode form 2 years ago #11870

I have a virtuemart shop, which I have to include a small quickmode built form, the form needs to include an image, from virtuemart, so I need to use this code within a section of a quickmode form,


<img src="components/com_virtuemart/shop_image/product/<?php echo $product_full_image ?>" width="400">



I have tried putting it into the html area but it is cleaning out the code.

where can i add the above to make it display the image/

Regards

Steven Dowd
  • StevenD
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Karma: 0

Re:PHP and Image in quickmode form 1 year, 12 months ago #11895

I am having no luck with this, I have tried all sorts of things to try to stop the php code getting stripped,

Has anyone any idea how to add the php into the form section html description area

Thanks

Steven
  • StevenD
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Karma: 0

Re:PHP and Image in quickmode form 1 year, 12 months ago #11922

Can anyone help at all

I am hitting my head against the wall here

How do I add any php content at all into the description section of a quickform section html area

I cannot even get it to echo "hello world"

The form i have is built using quickform, it has to be that because the other formtypes do not support emailing image upload attachments to the admin.

I have to display an image on the form, which is pulled from the virtuemart database, it displays no problem at all on the virtuemart page by just using

<img src="components/com_virtuemart/shop_image/product/<?php echo $product_full_image ?>" width="400"/>


but as soon as I add this into the forms section description, even with wysiwyg editors turned off, so that it doesnt strip anything, it still doesnt work.

<img src="images/stories/logo.png" width="400"/>


This though does work, so I know i can display the image where I want it, but I cannot figure howto get the php to work? or any php to work

I have been reading everything i can in the forum, and cannot find anything where anyone has mentioned php in a quickmode built form, or image in the form at all

Steven
  • StevenD
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Karma: 0
Last Edit: 1 year, 12 months ago by StevenD.

Re:PHP and Image in quickmode form 1 year, 12 months ago #11926

Hi Steven,

I'm sorry you're having trouble. I've passed your post along to tech support and will hopefully have an answer for you soon.

Thanks,

Terry
Customer Care
  • terrywmu
  • OFFLINE
  • Administrator
  • Posts: 527
  • Karma: 8

Re:PHP and Image in quickmode form 1 year, 12 months ago #11928

Thankyou Terry

just so you know, I have been reading in the facileforms forums as well, incase I can find anything, I did find a post saying that in FF you shouldn't use "echo" in php within the forms, that you should use "return"

but even using that I cannot get an image to display.

Steven
  • StevenD
  • OFFLINE
  • Junior Boarder
  • Posts: 26
  • Karma: 0

Re:PHP and Image in quickmode form 1 year, 12 months ago #11972

Hi Steven,

Where are you getting the virtuemart image variable from? Are both VirtueMart and BreezingForms housed within the same database?

Thanks,

Terry
Customer Care
  • terrywmu
  • OFFLINE
  • Administrator
  • Posts: 527
  • Karma: 8
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.34 seconds

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany