0

Hi everyone, I have created a twitter app to auto post to a number of twitter accounts.
The auto tweet works great - but for one thing I am stuck on...
I am trying to add a hashtag # (#) to the tweet but for some reason I'ts not working.

Do I need to use urlencode? im not how that would work.

Here is the working auto tweet - What I am trying to do is add the hashtag before $wastteam
So the tweet would look like this #Everton

<?php twitter_post($wastuname . ' ' . has . ' ' . just . ' ' . entered . ' ' . a . ' ' . competition . ' ' . to . ' ' . win . ' ' . a . ' ' . $wastteam . ' ' . season . ' ' . ticket . ' ' . at . ' ' .$link) ?>

If anyone could help that would be great thanks -

2
Contributors
4
Replies
7
Views
4 Years
Discussion Span
Last Post by lloyd.farrell.7
0

Impossible to say unless we can see the code. ALso you don't need all that concatenation:

<?php twitter_post("$wastuname has just entered a competition to win a $wastteam season ticket at $link");?>

will work

0

Hi thanks -

I have tried using
$hashtag=htmlentities("'.&#35;.'");
$hashtags=htmlentities("'.#.'");
$hashtagss=htmlentities("&amp;#35;");

But still not getting the # symbol

0

We have no way of knowing how you're passing this info or how it's being used. Show your code.

0

Thanks for your reply, looks like I going about it the wrong way :)

I added the # before $wastteam and bingo -
Thanks buddy -

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.