Jump to content

code fails using ;


totallytech

Recommended Posts

Hi Guys,

 

I'm using some code to add to a shopping cart, you have to hard code the product details to the php so I have this

<?php
echo name="' . $image->alttext .'" options_name="Size" options="'.8x6:9.50;10x8:13.50.'" qty_field = "true" b_title="Add To Basket" ;

The issue i have is with the options section : options="'.8x6:9.50;10x8:13.50.'"

 

if I use options="8x6:9.50;10x8:13.50" then it only displays 8x6 - £9.50 and doesnt show the 10x8 one, If I add options="'.8x6:9.50;10x8:13.50.'" it breaks the code completely.

 

Any ideas how I can code this?

Link to comment
https://forums.phpfreaks.com/topic/281510-code-fails-using/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.