Jump to content

help modify a code


darkdrops
 Share

Go to solution Solved by Barand,

Recommended Posts

need help with a  code

i have placed a image instead of a button.

but when i click on it it not redirekt to the page its supose to go

anyone have the answer for this?

excuse my bad english:)

<td>
<select name=\"upgrade$membership[id]\">
";
for($x=0; $x<count($tpackages); $x++) {
$temp_price=($tpackages[$x]*$membership['price']);
$includes[content].="<option value=\"".$tpackages[$x]."\">".($tpackages[$x])." ".
iif($membership[time_type]=="D","Day").
iif($membership[time_type]=="W","Week").
iif($membership[time_type]=="M","Month").
iif($membership[time_type]=="Y","Year").
iif($membership[time_type]=="L","Lifetime").
" Membership - $cursym $temp_price";
}
$includes[content].="
</select>
</td>
<td><input type=\"image\" src=\"images/paypal.png\" onclick=\"buyupgrade($membership[id],document.form.upgrade$membership[id].value)\" value=\"Buy Now!\"></td>
Edited by ignace
Added code tags
Link to comment
Share on other sites

this is how the orignal code looks like.

and this working fine.

 

<input type=\"button\" onclick=\"buyupgrade($membership[id],document.form.upgrade$membership[id].value)\" value=\"Buy Now!\">

 

but this not have a picture to click on just a button

Link to comment
Share on other sites

This thread is more than a year old.

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.

 Share

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