Originally posted by Pilot-Doofy
On my site VCClan.com, I have clans submitted to me for a game called Vietcong about the Vietnam war. It's a long story but I have a question...
When I put the table in and I enter all the information I want, assign id's etc. how do I actually get the information on the page?
Generally, you write a handler script that receives information from a form and decides what to do with it ... sometimes it does the display itself. It's also possible to have the handler script and the form be two portions of the same script, using some type of comparative logic to decide whether to display the form or the information that the form just submitted. Please keep in mind, however (and this is a typical newbie misunderstanding) ... PHP is server side, so information collected on a web form must be POSTed to the server for processing ...(e.g., a page load will be necessary...)
What php functions would I need in order for the information to be displayed?
The easiest answer is you need [man]echo/man or [man]print/man ... but the joke there is that this is simply for printing stuff to the browser ... there will be more to it than that, I'm guessing...
I use Dreamweaver too, I would like to just put php tags in the current template instead of having to intwine and the code together if that's possible also. Please help!
Thanks for not using that last sentence as your subject line ... 😉
P.S. the fields are "tag" "name" "info" and "id" for the variables.
So, one easy way to output the "name" (assuming POST as your form action attribute):
<?php
echo $_POST['name']; // this should print the contents of the "name" field when
// used on the handling script
?>