/    Sign up×
Community /Pin to ProfileBookmark

PHP Insant Quote

Hi, I’d like to add a php script, like on [URL=”http://www.blockpavingprices.co.uk/block-paving-cost.php”]this[/URL] site, to my website.

Are there any that could be downloaded available?

I don’t quite understand how that one works as I am quite new to php.

Cheers

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@nyxSep 28.2010 — Could you be more specific as to which script you're referring to?
Copy linkTweet thisAlerts:
@KillCoreauthorSep 28.2010 — This one http://www.blockpavingprices.co.uk/includes/calculator.php.

How does it do the math? I don't understand how the action works, on submit, to reload the page and show the answer.
Copy linkTweet thisAlerts:
@nyxSep 28.2010 — At a guess I'd say that it's a normal form which is just posting the entered data through to the same page. It's probably checking to see if the posted data exists and if it does, it will do the calculations for the price, it not, it will just re-render out the form.

There's an example on passing form data on Tizag which should be a good starting point.
Copy linkTweet thisAlerts:
@KillCoreauthorSep 28.2010 — ok, great stuff. I'll get my head round that and let you know how I get on. ?
×

Success!

Help @KillCore 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.6,
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,
)...