CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 "+" chars in my links

Print topic Send  topic

Author Message
mantiscomputing

Posts: 11
Posted: 02/04/2005, 6:19 AM

I have a MySql DB with text for email bodies and subjects in, the idea is to generate a hyperlink as follows:
mailto:fred@here.com?subject=here there mate&body=body goes here.
but what I get is mailto:fred@here.com?subject=here+there mate&body=body+goes+here.
Note + signs in the white spaces, I have tried manually adding the params rather than using the DB but just the same.
Anyone got any ideas how I fix this?
View profile  Send private message
peterr


Posts: 5971
Posted: 02/04/2005, 11:49 AM

When I type into Google search "test abc" then the space is also removed from the URL and replaced with '+'. In result I see this URL in Google: http://www.google.com/search?hl=en&q=test+abc
Is this a problem?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
mantiscomputing

Posts: 11
Posted: 02/04/2005, 12:15 PM

yes it is a problem as I dont what the emails padded out with + signs, if+you+know+what+I+mean
View profile  Send private message
peterr


Posts: 5971
Posted: 02/04/2005, 12:23 PM

Sorry then. Actually I didn't understand what you're doing. How are you generating those hyperlinks, or manually adding the params? And where?
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
mantiscomputing

Posts: 11
Posted: 02/04/2005, 12:44 PM

the email address show on the page is from a database record, I have then added a mailto link so that users can click on the email address and send a prefilled email to the address specified by using the 'subject' and 'body' params.
The params are added in using the 'Href source' and adding an expression as follows:
Parameter source = body and Parameter name = "body of email goes here etc" (this entered in quotes as show) this is repeated for the subject parameter.
I hope this helps
View profile  Send private message
mantiscomputing

Posts: 11
Posted: 02/04/2005, 12:45 PM

BTW I looked into the google thing as you suggested and once the search button is pressed it does have a + in the address bar but not in the search field at the top of the page
View profile  Send private message
peterr


Posts: 5971
Posted: 02/04/2005, 12:49 PM

OK, I would have to spend some tmie checking into this, but if this text is static then you could probably edit the HTML. For example your HTML could look like this:

<a href="mailto:{email_Src}?subject=test1 test2">{email}</a>

Hope this will work.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
mantiscomputing

Posts: 11
Posted: 02/04/2005, 12:57 PM

ok thanks I will try that, I do want the text to be dynamic eventually so the email body can be changed without editing the pages.
Thanks for your time
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.