For 2021 - online Python 3 training - see ((here)).
Our plans were to retire in summer 2020 and see the world, but Coronavirus has lead us into a lot of lockdown programming in Python 3 and PHP 7.
We can now offer tailored online training - small groups, real tutors - works really well for groups of 4 to 14 delegates. Anywhere in the world; course language English.
Please ask about private 'maintenance' training for Python 2, Tcl, Perl, PHP, Lua, etc.
Well House Consultants
You are on the site of
Well House Consultants
Open Source Training Courses
hotel accommodation. You are welcome to browse and use
our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Well House Manor Resources
Object Orientation and General topics
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
C and C++ Resources
Web and Intranet Resources
PHP module H110
HTML Web Page Data Handling
Exercises, examples and other material relating to training module H110. This topic is presented on public courses Learning to program in PHP
, PHP Programming
, Beginning PHP - weekend course / hobby / club / leisure users
, PHP Programming
, Learning to program in PHP
There's a great deal of information available to you in your PHP program, ranging from the contents of forms completed by the user through the URL from which your page was called and his IP address. In this module, we look at using these variables and we highlight some of the more useful ones.
Related technical and longer articlesExample - PHP form, Image upload. Store in MySQL database. Retrieve.
|Articles and tips on this subject||updated|
|789||Hot answers in PHP|
We've got a lot - a LOT of demonstrations and source code on our site. Here are a few of the most popular ones all brought together in a single listing. Enjoy ...
Searching - how similar are two words? - try about source
Does a particular URL exist? - try source
Uploading an image to a database ...
|3926||Filtering PHP form inputs - three ways, but which should you use?|
There's a vital need to validate user inputs in PHP - to make sure that users have put something sensible into the boxes on your forms. And there are multiple ways of doing this:
a) You can check the incoming strings against regular expressions. In the old days you may have used the ereg functions, ...
|3036||Sending out an email containing HTML from within a PHP page|
The mail function in PHP allows you to send a plain text email in a single function call from within your script but please read the cautions at the end of this post before you do so!. How do you send out something in HTML format, though?
The mail function takes an additional (fourth) parameter of extra ...
|2107||How to tweet automatically from a blog|
How to Tweet from a Blog
I'm using the MoveableType Blog software for "The Horses's Mouth" ... and I want to tweet my subject line for each new post. But I'm lazy, so I have set it up to happen automatically.
1. I post my blog entry in the usual way
2. I have added the following script at /home/wellho/tweeter/blogtweet ...
|2046||Finding variations on a surname|
Here's a little demonstration of how you can use PHP to look for a 'similar word' - in this case, from a file of surnames. Have I done all the hard work? No - I crawled for some surnames to add to my demonstration file, and I used PHP's built in functions to do the hard work!
Run Demonstration ...
|1136||Buffering output - why it is done and issues raised in Tcl, Perl, Python and PHP|
When you go to board a plane at Heathrow, do the ground staff admit the passengers one at a time, ensuring that each is seated before the next boards, and sealing and re-opening the main doors between each? What a stupid and inefficient system that would be!!
The same thing applies when you're programming ...
|2135||What features does this visitors browser support? (PHP)|
Does this visitor's web site support CSS? Is this visitor a robot? Should I send out frames? There are the sorts of questions that you may want to ask in a PHP page .... and PHP supports the get_browser function which can tell you ... or which can tell, most of the time, once you have it configured.
|2025||Injection Attack if register_globals in on - PHP|
You may have heard me talk about "injection attacks" and that having register_globals set to on in PHP makes you liable to be caught by them. Well - that's a little bit dramatic as you can write perfectly safe PHP scripts with the setting on if you're careful. Here's an example of a script which is ...
|1001||.pdf files - upload via PHP, store in MySQL, retrieve|
There's a common requirement to manage binary data - upload from a user, store, bring back in a web page. And where you have a substantial number of pieces of data - a lot of .pdf documents, .jpg or .gif images, or even Word documents, you'll wish to store them in a database with the potential for keyword ...
|1831||Text formating for HTML, with PHP|
Do you want "normal" text that's formatted in a fixed width font, with white spaces and tabs and new line characters to have a similar appearance on a browser? The default answer of you generate a page of HTML is "tough luck", as text defaults to a variable width font, lines are squished together with ...
|1169||Emailing as HTML (Web Page) - PHP example|
If you want to send an email as HTML, you can do so by adding a content-type header.
$content = <<< EMC
<h1>Hello World</h1>an HTML email
Shwoing how the content can be sent
as a web page.
$extras = "From: Graham Ellis \n";
$extras .= "Reply-to: Graham Ellis ...
|1053||Sorting people by name in PHP|
Our petition for a reasonable train service is going great guns - over 1000 signed up in just over a week, amongst them significant players such as MPs, MEPs .... but, my goodness, the list as presented by the web site is hard to look through. So I've grabbed a copy of the list and sorted it - see here.
|896||PHP - good coding practise and sticky radio buttons|
With PHP, it's very easy to knock together a page with a couple of radio buttons and a small application just be taking the "bull at a gate" approach - but if you develop code like this, and without planning, you end up with a very long application that's hard to follow and maintain and - unless you've ...
|589||Robust PHP user inputs|
If you write a script in PHP, it's one thing handing benign user inputs, and quite another "bullet proofing" your script against awkward characters (of the "less than" and "double quote" type) entered into form fields where they can lead to problems of the SQL error, echo display corruption and injection ...
|50||Current cost in your local currency|
If you're selling internationally on line, it's a nice gesture to your customers to tell them roughly what things cost in their local currency, before you charge their credit card in pounds, dollars, euros, or whatever currency you use yourself. Tables of current exchange rates are easy enough to find, ...
Examples from our training material
PicturesPHP page inputs - form, cookies, request, environment
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
Inputs available from your page and environment.
Other form elements.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre.