//so now we have $txtPath, $pdfPath, $prodTitle, $catIcon, and $catTitle
?>

Thanks to all,
Ryan

<mod edit>Subject edited</mod edit>

DanielTeam Member

Joined: 06 Jan 2002
Posts: 2564

Posted:
Tue May 28, 2002 4:22 pm (15 years, 6 months ago)

If you could be more precise, it would help. What do you mean by "it won't work"?

________________________________

brainfuelmediaJunior WebHelper

Joined: 28 May 2002
Posts: 5
Location: Canada

Posted:
Tue May 28, 2002 4:29 pm (15 years, 6 months ago)

When I try to execute this code in a web page, in this case "product.php", the page will not execute. If I remove the code from the web page, the web page renders, but of course the variables listed in the html portion of the page are empty because the php code is no longer there.

It appears to me that I am either missing something in the php code (i.e. a syntax mistake, mis-used operator, etc.) or the cgi server this code is running on is restricting something in this php code.

I'm confused...

BTW, thanks for the quick reply.

Ryan

DanielTeam Member

Joined: 06 Jan 2002
Posts: 2564

Posted:
Tue May 28, 2002 4:44 pm (15 years, 6 months ago)

When you run product.php on its own, does an error appear?

________________________________

Justin4WebHelp Addict

Joined: 07 Jan 2002
Posts: 1060

Posted:
Tue May 28, 2002 4:59 pm (15 years, 6 months ago)

I just ran it on it's own, and I got :

Parse error: parse error in /hsphere/local/home/justin/dev.ecddns.com/test.php on line 28

DanielTeam Member

Joined: 06 Jan 2002
Posts: 2564

Posted:
Tue May 28, 2002 5:01 pm (15 years, 6 months ago)

Change:

Code:

$type = type[0];

to

Code:

$type = $type[0];

________________________________

brainfuelmediaJunior WebHelper

Joined: 28 May 2002
Posts: 5
Location: Canada

Posted:
Tue May 28, 2002 5:05 pm (15 years, 6 months ago)

I just got another email pointing that out... told you I was a newbie

Thanks for the help!!

I have another question now though. Sorry...

I want a user to be able to click on a link from another page:

i.e. <a href="product.php?id=agr_lig_liq_+Calcium_6%">Calcium 6%</a>

and the product.php page to recieve the variable $id from this refering page.

Is the above method the correct way to do this?? Do I need to put this information in a form?? Do I need a submit button??

You cannot post new topics in this forum.You cannot reply to topics in this forum.You cannot edit your posts in this forum.You cannot delete your posts in this forum.You cannot vote in polls in this forum.