/    Sign up×
Community /Pin to ProfileBookmark

Invoice generator too many products

Howdy, rusty php invasion alert!!

I am trying to produce an automated invoice maker to print out invoices based on criteria entered into textfields/areas etc. I have the form with all the stuff on it and a column containing checkboxes, if I want to add that product/service to the invoice I click that checkbox and change any pertinant information on the remaining columns, ie quantity etc. It should then add that to the invoice page after clicking submit. Problem is it adds all the entries to the page, all the products and services – oops!

I am using this code:

if ( $USED==’checked’); {
echo “<tr valign=’top’>
<td>”.$ITEMNUMB.”</td>
<td>”.$STOCKNUMB.”</td>
<td>”.$QTY.”</td>
<td>”.$UNIT.”</td>
<td>”.$DESCRIPTION.”</td>
<td>”.$PRICE.”</td>
<td>”.$AMOUNT.”</td>
</tr>”;
}

where $USED is the name of the checkbox and the rest are the item and its stuff. Each item/service has a block like this changed only by the use of an incremental number after each $xxx, ie $USED2, $USED3 etc.

Am I barking up the wrong tree as this seems like a very long winded way of going about this?

Any help would be appreciated on this.

Thankyou in advance.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@NogDogFeb 15.2005 — Get rid of this semicolon, and maybe you'll be OK. ?

[FONT=courier new]if ( $USED=='checked')[b][color=red];[/color][/b] {[/font]
Copy linkTweet thisAlerts:
@OtsuauthorFeb 18.2005 — Super you, silly me!! Excellent, works like a treat!
Copy linkTweet thisAlerts:
@viklosJun 06.2016 — Hi you can take help from invoice generator as you have a lot of product and as I know it is free with no charge . However you can try it .I think you will get your desire help from it . Whatever you have a lot of products you can generate your invoice in an easy way
×

Success!

Help @Otsu 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.27,
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,
)...