[Solved]: need help implementing a small script [Solved]: need help implementing a small script
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: need help implementing a small script

Started by m0nty, June 29, 2004, 12:09:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

m0nty

hi,

i have an account with an SMSC and media messaging company, that allows me to link images from my site, basically this means users can click a link and the image will be sent to their cell phone (providing they have picture capability on their phone).

what i want to do is where the URL link is displayed on the image view screen, i want to change this, so that when they click a link (ie.  click here to send this photo to your mobile phone) it will send it..

the script is below:

<a href="#"
onClick="javascript:
window.open(
'http://*****.******.cc/req.php
?account=******d
&image=http://yourdomain/pic.jpg
&caption=your+caption
&code=UniqueImageRequestCode','_MPUSH',
'width=640,
height=420,
titlebar=1,
resizable=1, scrollbars=1');">
Send to my mobile
</a>


basically i want the photo url (normal_image) to be automatically placed into the  &image part of the script (highlighted red)
also the image title to be placed into the caption part (highlighted in red)

this will then send the image to the service centre who then send it to the cell phone.

edited out certain parts with **** for security reasons..

thanks in advance

Joachim Müller


m0nty