Jump to content

help please school project


xcoderx

Recommended Posts

Are forms tabular data? :)

 

That depends. You can reasonably say that they are:

[pre]---------------------------

| Name      | Value      |

===========================

| First Name | __________ |

| Last Name  | __________ |

| Email      | __________ |

---------------------------[/pre]

The thing is just that making them a table makes it difficult to style it differently, so you're better off not doing it.

Err, PHP includes? Templates?

 

Uh yeah, but something has to trigger the change after the page has loaded.

 

Ey? I think what DEVILofDARKNESS was meaning was to manually edit each file, as opposed to a single template that you just edit once?

From http://us3.php.net/manual/en/function.require.php , http://us3.php.net/manual/en/function.include.php , http://us3.php.net/manual/en/function.require-once.php , http://us3.php.net/manual/en/function.include-once.php

 

require() is identical to include()  except upon failure it will produce a fatal E_ERROR  level error. In other words, it will halt the script whereas include() only emits a warning (E_WARNING) which allows the script to continue.

 

The include() construct will emit a warning if it cannot find a file; this is different behavior from require(), which will emit a fatal error.

 

The require_once() statement is identical to require() except PHP will check if the file has already been included, and if so, not include (require) it again.

 

The include_once() statement includes and evaluates the specified file during the execution of the script. This is a behavior similar to the include() statement, with the only difference being that if the code from a file has already been included, it will not be included again. As the name suggests, it will be included just once.

 

I always use require_once(), myself.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.