Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Evaluate problem

Status
Not open for further replies.

jarla

Programmer
Jan 2, 2001
34
0
0
FI
I have problem again. Here is little explanation, I hope your understand.
First page have drop-down box that customer use to choose the right size for picture order. It have values with this begin:
<select name=&quot;size#asset_name#&quot;>
blaa...blaa...
Then little database check and we found what is the price of that size of picture:
<cfif #onemeg# is not &quot;&quot;>
<option value=&quot;1&quot;>1Mb(EUR #onemeg#)</option>
</cfif>
</select>

Another page put all values together and calculates the total amount of order. Like this:

<cfloop list=&quot;#asset_name#&quot; index=&quot;index&quot;>
<cfif '#Evaluate(&quot;size&quot;&index)#' is &quot;1&quot;>
Then again database check for that picture, how much is the price...
</cfloop>

That works GREAT if any of the &quot;asset_name&quot;s don´t have &quot;-&quot; -sign with its name. Some images have name like 455-456.jpg and those images give &quot;Invalid parser...&quot; -error. What can I do to make also those pictures work???
 
Can you give me an example how can I use that? And what is the reason why those &quot;-&quot; -signs makes the errors?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top