Page 1 of 1

body .= link?

Posted: Mon Feb 28, 2005 3:02 pm
by C_Calav
hi guys,

what is wrong with this?

parse error:

Code: Select all

$body .= "<a href="launch.php?s_id=$s_id;">the survey</a>"
thanx

Posted: Mon Feb 28, 2005 3:21 pm
by Dale
Backslashes ;)

Code: Select all

$body .= "<a href="launch.php?s_id=$s_id;">the survey</a>"
... to ...

Code: Select all

$body .= "<a href="launch.php?s_id=$s_id;">the survey</a>"

Posted: Mon Feb 28, 2005 3:23 pm
by John Cartwright
or to make the vars readable when viewing in an editor and such..

Code: Select all

$body .= '<a href="launch.php?s_id='.$s_id.'">the survey</a>'
Not to mention single quotes parse faster than double quotes :P

Posted: Mon Feb 28, 2005 3:26 pm
by C_Calav
thanx guys,
Not to mention single quotes parse faster than double quotes
thanx didnt know that!

Posted: Mon Feb 28, 2005 3:27 pm
by Dale
Phenom wrote:Not to mention single quotes parse faster than double quotes :P

Is that true?

Posted: Mon Feb 28, 2005 3:31 pm
by C_Calav
ok, now that worked kidna for a php page.

but in the email i recieved,

the link was outputed as this:

Code: Select all

<a href="survey_form.php?s_id=47">the survey</a>
how can i get it to appear as a hyperlink?

thanx

Posted: Mon Feb 28, 2005 3:33 pm
by John Cartwright
you have to send the right headers with the email.. by default emails will show plain text.

Why don't you try searching :P +email +html

Posted: Mon Feb 28, 2005 3:35 pm
by C_Calav
thanx, i do normally search but the last few weeks when i use the search on this site from work, it just shows a blank page!

i dont think it has anything to do with work as it used to work.

very annoying!

Posted: Mon Feb 28, 2005 4:18 pm
by Dale
C_Calav wrote:thanx, i do normally search but the last few weeks when i use the search on this site from work, it just shows a blank page!

i dont think it has anything to do with work as it used to work.

very annoying!

If your using google, you may have a malware problem (i think thats the word for it)... use a SHREDDER to get rid of it XD

CW Shredder.exe

Posted: Mon Feb 28, 2005 4:59 pm
by C_Calav
yeah i use google, but the problem is when i use the search on this site

Posted: Mon Feb 28, 2005 5:02 pm
by John Cartwright
what are you searching for.. sometimes if the search is too broad it will hit the max execution time... try limiting your search through recent discussions if neccessary

Posted: Mon Feb 28, 2005 5:14 pm
by C_Calav
it shows the search results, then when i click a link it goes to a blank white page. the url and everything is there though

Posted: Mon Feb 28, 2005 5:28 pm
by Chris Corbyn
how many browsers have you tried it in? You've mentioned in a few posts recently about this search problem but I haven't heard it from anybody else.

I believe it could be spyware related. The quickest way to check would be too download the latest version of mozilla and try searching in that browser. If it works then get Adaware from lavasoft.com and run a full scan. I've had the blank page problem before due to spyware / adware or whatever but not on the particular site. When did you last clear your cache too?

Posted: Mon Feb 28, 2005 6:18 pm
by C_Calav
cool thanx, i will try and download FF at work and ill clear my cache and let you guys know!