Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.