View Full Version : php in miva possible?
warwickmc
06-04-08, 09:52 AM
wanting to put a php email to a friend script into miva, is it possible to put php into miva pages?? any considerations or suggestions??
Rick - WolfPaw Computers
06-04-08, 10:39 AM
Yes it can be done. I have done it in a couple of Miva 5 stores and they are still working after the 5.5 upgrade.
Rick
warwickmc
06-04-08, 11:04 AM
glad to hear it, any hints on where to start??
Rick - WolfPaw Computers
06-04-08, 09:37 PM
The hardest part was getting the pathing correct but I used javascript to pass data to the external php files to complete the actions.
This particular script updates an image, something like this.
document.img.src='yourfile.php?var1=' + var+'&var2=' + var+ '&var3=' + var;
I hope that helps.
Brandon MUS
06-04-08, 11:29 PM
AJAX would be the easiest way to do it. Use JavaScript to make a call to the PHP page and inject the results in to the page as needed.
To really make PHP and Miva play nicely together, I think you need to use something like Weiland's toolkit
zslates
06-11-08, 07:51 AM
Weilands kit is very, very useful.
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.