Web forms can easily be designed using Dreamweaver or any other opage design tool. However, the pages generated by PHP scripts may seem more difficult - do you have to code it all in raw HTML?
In fact, you can still do most of the work in something like Dreamweaver and then edit the resulting HTML file to make the PHP script. here is how.
First of all imagine some sample data (e.g. for personal details data may have name="Alan Dix", title="Prof", url="http://www.hcibook.com/alan/"). Now design using Dreamweaver the way uou would like the page to look:

This is the HTML that Dreamweaver generated for the above:.
<head> |
Save this file and then copy it and change the extension at the end to ".php".
Look through the HTML for the places where there is infornmation that should change depending on the actual data (highlighted):
<head> |
Now for each of these simply replace the text with the PHP script <? php echo $varname; ?> (where '$varname' is the appropriate field name):
<head> |
That is it!!
If the data is being read from a data base then you will also need to add a bit of code at the very beginning to actually read the data from the database (see later).
| http://www.meandeviation.com/tutorials/learnphp/howto-design-gen.html | Alan Dix © 2002 |