You are here: How do I "merge" inputs? « All PHP « IT news, forums, messages
How do I "merge" inputs?

Posted by Danny Boy on 04/12/06 22:01

Hi all,

I am a complete php novice, but used to regular html and css. What I'm
trying to do is to make a form work to submit details to a payment
gateway from a shoppingcart (specially made by a php guru who is on
vacation).

The* costs* of the items are added up fine and ready to be submitted.
But it's the *description* of them that we forgot to "add up" in the
same way before the developer went away.

The syntax I have for the description of the items is:
<?php print $item->quantity;?> <?php print $item->name;?> which
eventually renders in e.g.:
2 screwdriver

If the customer buys several items, it'll print e.g.
2 screwdriver
4 pliers
3 hammer

The way I need it to look is:
2 screwdriver, 4 pliers, 3 hammer

....in the same line (and tag) so that it'll be passed over to the
payment gateway as one single parameter instead of three.

I am not sure that I managed to explain this very well. :-\ But I hope
someone can make sense of my drivel anyway and help me how to accomplish
this.

TIA, a lot.
Danny

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация