|
Posted by Dave Smithz on 07/20/05 15:43
Thanks again for reply. Replies inline.
"Philip Ronan" <invalid@invalid.invalid> wrote in message
>>>
>>> <http://www.example.com/path/to/a-script-with-a-very-long-filename?and=a&lon
>>> g=search&string=stuck&on=at&the=end>
>
> Really? It works in my version of OE (the URL is still on two lines, but
> functions as a single link). This format is recommended in RFC 2396, so it
> should work in any decent mail reader.
Darn shame this does not work. I assume it is not working because when I
click it, it takes me to a page where the url is only the part on the first
line. This would be a dead easy solution but the fact that it does not work
in OE for me would surely mean that there would be problems.
I'm going to try it again with a real link now (link to this posting)
<http://groups.google.co.uk/group/comp.lang.php/browse_thread/thread/1cb1b4c32adc20ac/6734c79bc12f98e8?q=Re:+Email+URL+to+plaintext+receivers+-+URL+being+truncated(UsingPHP+Mailer)&rnum=1&hl=en#6734c79bc12f98e8>
> Create a table (ideally in a mySQL database) containing your long URLs,
> and
> generate new (shorter) URLs based on the keys to this table.
>
> For example, your table might look like this:
>
> Key Value
> 1 http://www.example.com/promotions/index.php?customer=foo&product=123
> 2 http://www.example.com/feedback/index.php?customer=bar&product=456
> 3 http://www.example.com/licensing/index.php?customer=baz&product=789
>
> Then all you have to do is make a script to redirect visitors to these
> URLs
> based on the key value, e.g.:
>
> http://www.example.com/jump.php?to=1
> http://www.example.com/jump.php?to=2
> http://www.example.com/jump.php?to=3
Sounds like a good idea but two problems. The link is like a confirmation
link and there needs to be no chance of you guessing someone else's link.
Secondly I had not budgeted for building this. As in I've already done a lot
of overtime for client and as they send out thousands of URL links so I
would have to think about implementing a new table etc.
Looks like I'll have to create a HTML email and then a text part to that
email that has a text box where the user just types in their code into a
form text box. Unless any other good ideas.
Regards
Navigation:
[Reply to this message]
|