Jump to content

need help formatting a url to be emailed from within a script


jmilane

Recommended Posts

I want to email the equivalent of

[code]<a href="http://www.mysite.com/script.php?=32">View Record</a>[/code]

from within a php script

where 32 is really a variable $lastid

so I am trying

[code]<a href=\"http://www.mysite.com/script.php?=$lastid\">View Record</a>;[/code]

isnt working.

help?

thanks so much.
Link to comment
Share on other sites

[quote author=jmilane link=topic=109424.msg440990#msg440990 date=1159197991]
I want to email the equivalent of

[code]<a href="http://www.mysite.com/script.php?=32">View Record</a>[/code]

[code]<a href=\"http://www.mysite.com/script.php?=$lastid\">View Record</a>;[/code]

[/quote]

What they meant was that in your link, you didn't specify what POST variable $lastid is supposed to be assigned to.  Your link wouldn't work because of that.  The "[/i]" thing was a formatting error, but it took me a moment to figure out what it meant too.
Link to comment
Share on other sites

[quote author=thorpe link=topic=109424.msg441010#msg441010 date=1159199004]
Yeah sorry, that was a typo. Look at the bolded text....

<a href=\"http://www.mysite.com/script.php?[b]id[/b]=$lastid\">View Record</a>
[/quote]

Ooohhh... okay. Thanks. You are right of course.

Link to comment
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.