Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

proper usage

Status
Not open for further replies.

WintersMystic

Programmer
Aug 8, 2001
39
0
0
US
i am writing a form script for a friend of mine. it has 29 inputs and submit reset buttons. my question is, is it proper to put the HTML into the php script or is it more apropriate to "call" the php script with the form on an .html page?

im asking because i was told the script would respond faster if called from an HTML page rather than the .php3 page itself.

just kinda curious :)
 
If you only want to put HTML code and you don't need PHP for that page, you SHOULD name the file as .htm or .html. It's faster cause the server don't need to run the PHP.

Else, if you have to keep some variable as a session var, or something woth PHP, then you must name it as .php.

Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top