Jump to content

Unexpectet T_String


Pavlos1316

Recommended Posts

Hello, ( Iam not very familiar with javascript)

 

On my factions.php file I have this line of code that works fine:

$output[] = '<td><a href="cart.php?action=delete&id='.$id.'" class="r">Remove</a></td>';

but I want to transform it to:

$output[] = '<td><a href="javascript:ajaxpage('cart.php?action=delete&id='.$id.'', 'content');" class="bttn">Remove</a></td>';

but I get Unexpected T_String error.

 

My Javascript code that makes

<a href="javascript:ajaxpage....</a>

to work in every other page is on top of my index.php

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/233835-unexpectet-t_string/
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.