close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Session Variable HREF Prefix

Thread began 9/11/2020 2:54 pm by localidiot | Last modified 9/11/2020 3:38 pm by Ray Borduin | 10 views | 1 replies |

localidiot

Session Variable HREF Prefix

When I echo a URL that was from the database that contains a domain that of which is not executing the php script, in the href link it prefixes the url with the current hostname.

The href value ends up looking like https://somesite.comhttps://subdomain.somesite.com/thelinktopage

I echo out the value of the URL before and after the echo of the HREF link, and they both show https://subdomain.somesite.com/thelinktopage

Whats even stranger is if i try to html_entity_decode the url to, the prefix to the URL in the href references the path all the way down the includes path of the email template folder in webassist.

I sure Im doing something wrong. This seems like a simple issue, its just that when I echo a value and it shows to be what it should be and the only value of the generated href in the email template is that value, for it to append thehostname makes me think this a php.ini setting, I dont know where something is telling this script prefix this href with the currunt host.

Sign in to reply to this post

localidiot

Once again I earn the title of my handle. The issue here, was simply that the data I was returning from the database had a white space in front of the URL value. After trimming and fixing the data entry point for this value, I will go on to the next idiot question.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...