/    Sign up×
Community /Pin to ProfileBookmark

Paypal Shopping Cart

I have a bit of a problem in populating the Paypal shopping cart using PHP. I have emailed Paypal support without success so here goes.

The line in question is

<input type=”hidden” name=”item_name” value=<? echo “$title”;?>>

Now if $title is ” The Name of the Game” the cart only shows “The”. ie it only returns content upto the first space. Not good !!

Everywhere else on my site that I use echo the full title is returned.

Any thoughts, ideas or better still, solutions, gratefully received.

IP

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@JonaNov 09.2004 — [font=trebuchet ms]Try using the quotes in the proper places. ? [/font]

[code=php]
<input type="hidden" name="item_name" value="<?=$title;?>">
[/code]


[font=trebuchet ms]If that doesn't work, maybe you should list your items with underscores (_) instead of spaces in the names.[/font]
Copy linkTweet thisAlerts:
@ipbooksauthorNov 09.2004 — Wonderful. That works. Talk about not seeing the wood for the trees.

Many thanks.
Copy linkTweet thisAlerts:
@JonaNov 09.2004 — [font=trebuchet ms]Happy to help. ? [/font]
×

Success!

Help @ipbooks spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...