View Full Version : PHP Form naming pages


designgURL
02-12-2003, 05:09 PM
I got this script with this code (just one bit):

$datetime = date('dmY.His');

To make that the title of the page the form puts out.

I changed it to this:

$posterdate = $Namedate('dmY.His');

To add the persons name to the title, that they fill in. I'd keep it but I wanted the name as the title, but multiple names of course can be posted, so I wanted to try a name with the date.

Will this work or what will? I don't know if not having a space between them works, like putting them together will the script thinks it should be like they filled in something named $Namedate.. etc.

This is my first php script.

And I also added some things to links that they filled in, but will output in a link and I think it will work and I'm happy with it.

I will post more if it doesn't work or something. (More things than that don't work)

pb&j
02-12-2003, 06:36 PM
if you want to concate (put together) the name onto the front, try this...

$posterdate = $Name . date('dmY.His');

that way the PHP is not looking for a variable called Namedate.

designgURL
02-13-2003, 02:26 PM
great. so you must really know php, i want to take a programming class..

pb&j
02-14-2003, 03:27 AM
Originally posted by designgURL
so you must really know php
Not really. I'm muddling through for now as I am learning it now.
:D