PDA

View Full Version : not getting the miva output in my local system using mia.


perla ravi
07-04-08, 07:35 AM
Hi,

By using the following simple programme, i am trying to get the output in my local system using mia, when I run the home page I am getting only html output. I am not getting miva script output i.e. "The answer is:13 " I am getting only "The answer is: ."

<HTML>
<HEAD>
<TITLE>A simple Miva Script program</TITLE>
</HEAD>
<BODY>
<H2>A simple Miva Script program</H2>
<MvASSIGN NAME="var1" value="5">
<MvASSIGN NAME="var2" value="8">
<P><B>The answer is: <MvEVAL EXPR="{var1 + var2}">.</B></P>
</BODY>
</HTML>

any suggession why I am not getting the result 13 only getting the message as "The answer is: .".

Thanks in advance for your reply,

P.L. RAVI KANTH.

dotCOM_host
07-04-08, 08:02 AM
Miva Script is not like PHP - you can't mix it with your own html code. You'll need to compile the Miva Script portion and execute the resulting .mvc script, or, if you want to use the old, non-compiled format, use an old version of Miva Mia and format your scripts accordingly (ie: .mv extension, not .html, etc).

perla ravi
07-04-08, 08:06 AM
Hi,

Thanks for your reply.

P.L. RAVI KANTH.