almostbob 866 Retired: passive income ROCKS

The w3.org validator won't allow trying to validate it's own pages

That seems kind of suspicious. I never tried that

common sense,
what better way to DOS a site would there be than have it endlessly validating itself, so you exclude self references
same as most disable the current page from menus, coz its pointless

almostbob 866 Retired: passive income ROCKS

sames as IE6/png, conditional css with eot fonts for IE
or wait till IE supports css3 properly (looks out window, watching for Hell to freeze over)

<!--[if IE]>
@font-face { font-family: GraublauWeb;
   src: url("GraublauWeb.eot"); }
<![endif]-->

http://webfonts.info/wiki/index.php?title=%40font-face_support_in_Internet_Explorer

almostbob 866 Retired: passive income ROCKS

local is the local pc font store, I think, from the web server, even a web server installed locally it requires a url
something like

@font-face { 
font-family: GraublauWeb; 
src: local("Lucida Grande"), url("fonts/GraublauWeb.otf") 
format ("opentype"); }

http://webfonts.info/ font-face browser support details on browser differences

almostbob 866 Retired: passive income ROCKS

I find quirks mode causes problems it renders very differently in different browsers, and goes invisible in some.
I know the code I write works in my browser, and thumbdrive versions of other browsers.
The quickest way to find if code works is to test it in lots of browsers,
I push BrowserShots to do so, major screw ups have blankscreens, bad displays or error messages in the returned screenshots.
Valid code, gives less screwups in real browsers
Valid code with no fixed sizes for elements (ems %), except graphic elements that actually are fixed size (<img>), even display very similar in different browsers and different OS different resolutions

almostbob 866 Retired: passive income ROCKS

Q&D validation,
run the site through http://www.browsershots.org in browsers for each OS
IF w3c html validation errors are egregious it will show blankscreens in some (or many, sometimes ya really mess up :) ) browsers
if the site displays right in the target browsers, the html/css errors dont matter so much

Standard test beds
http://websiteoptimization.com/services/analyze/ Speed tweaks http://validator.w3.org/ html check http://jigsaw.w3.org/css-validator/ css check http://demo.opera-mini.net/demo.html?www.yoursite.com handheld http://www.browsershots.org other browsers

many problems (if present) will show

ggeoff commented: A very useful list of standard testing browsers +3
almostbob 866 Retired: passive income ROCKS

my db is simple, numeric data only, but i went here, MYSQL Charsets to find out how to display other character sets, it was complicated, thats when I decided to set numeric tables (chickened out)

almostbob 866 Retired: passive income ROCKS
<html><head></head><body>This is a popup window,<br>
which may not open on any random system thanks to popup blockers<br>
on the chance that it does open, I want to close it 5 seconds later
<script type='text/javascript'>
<!--
settimeout('self.close()',5000);
--></script></body></html>

also

<body onload="javascript:settimeout('self.close()',5000);">
almostbob 866 Retired: passive income ROCKS
<button type='submit' name='thisorthat' value='whatever you want'>displayed label</button>
almostbob 866 Retired: passive income ROCKS
<%@ Page Language = "VB" aspcompat=true Explicit="True"%> 
<%Dim src As String = " bet "%>

you knew to quote values up there , , , but, ,

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body >
<form name='loc' action='testsac.aspx' method='get'>
<table class='s0' width='100%' cellpadding='1px' cellspacing='1em' align='center' border='1px'>
<tr class='s0' align='center'>
<td>
Search For:
<input class='s0' size='50' name='src'  value='<% =src %>'>
<input class='s0' type='submit' value='Search'>
<td></td>
</tr>
</table>
</form>
</body>
</html>

Values are quoted in html,
measurements other than zero have a dimension
/> is Xhtml and may cause errors in html

for code problems where the solution doesnt jump out and bite you, plug the code into http://validator.w3.org/ and let it find the problems

almostbob 866 Retired: passive income ROCKS

limit =1 ? if you only want one pic
or if pictures in albums are number, select only number 1 in each album
hard to code without knowing the data structure

almostbob 866 Retired: passive income ROCKS

any time consuming bandwidth eating enhancement you make, will make no difference to the user,
If the enhancement delays the loading of the page they will leave
user click away may seriously annoy the client who is paying for this development
Check with the client whether they want a inaccessible site
before you code, much flash is not disability friendly, client location may limit what can be done, or force parallel coding
it has to be simple to maintain as well

If you pitch it at them right, and the idea is different enough, and effective, you'll get the go ahead, and there won't be questions later about how much extra were these features we didnt ask for.
the sort of script you need is likely already available to plugin from http://www.flashcomponents.net I have used this one. there is no noticeable page delay over the static jpg image that used to be there.

There are a bunch of user contributed actionscripts, on forums like this, but I cant at the moment think of what the google search would be

almostbob 866 Retired: passive income ROCKS

does src="file:///c:\users\sonnydajalexa\desktop\test\smiley.jpg" work

almostbob 866 Retired: passive income ROCKS
<?php
/* connect select db etc */
$flat=("SELECT C.Latitude, C.Longitude FROM Cities C JOIN Countries Co ON Co.CountryId = C.CountryId JOIN Regions R ON R.RegionId = C.RegionId WHERE C.City = '$city' and Co.Country = '$country' and R.Region='$state'");
while ($fr = mysql_fetch_array(mysql_query($flat))) {
$lat = $fr['Latitude'];
$long = $fr['Longitude']; } 
/* echo $lat $long; */
?>

I dunno but there has to be a query in there doesnt there?

almostbob 866 Retired: passive income ROCKS

they already look poor

almostbob 866 Retired: passive income ROCKS

those are the actual sizes of the images, not the desired size

<div id="main">
<h1>Pictures</h1>
<img width='594' height='292' alt='alt text is a requirement' src="Pictures/3DIM_poster.jpg" />
Poster presentation at 3DIM 2009.
<img width='594' height='612' alt='alt text is a requirement'  src="Pictures/scanner_inside.jpg" />
Leica HDS3000 LiDAR scanner in the lab.
<img width='594' height='612' alt='alt text is a requirement'  src="Pictures/scanner_outside.jpg" />A day of scanning in Troy.
</div>

I just pulled the sizes off the smallest image, and resized the others by proportion 730*752 > 594*612

its not a good idea to use html to resize images to suit the layout
actually resize the images with Irfanview, paintshop etc,
and serve them the correct size, (still with the sizes specified in the xhtml) smaller images = faster load times

notes
1:: the layout sucks, fixed width central column may look good on your pc,
mine is 2400px wide, what a waste of space
Ems and % are the dimensions of choice, width will adjust to screen and window size, keeping the same proportion as your design screen, on a wider range of systems
2:: incidental; the only bugs in the code is the missing alt tags in those images

almostbob 866 Retired: passive income ROCKS

WYSiWYG what you see is what you get
as in "FrontPage is a wysiwyg editor"

the code sample at the top of the prior reply should be cut and pasted into 'html view' in frontpage if you use it
the stuff in the <head></head> copied into your <head> the stuff in the <body></body> copied into your <body>
stuff between <style></style> and <script></script> tags copied between the same tags in your page head

FrontPage is not particularly friendly to import code, but the addition is MS centric so it wont **expletive deleted** up

almostbob 866 Retired: passive income ROCKS

1 file autostart on page load

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<style type='text/css'>
/* css positioning for the media player */
.logo { background:transparent; color:#000000; text-align:right; font-size:85%; top:auto; left:auto; position:fixed; bottom:1px; right:1px;  } //edit position by top bottom
</style>
<script type="text/javascript">
<!--//
function shrink(){
 document.getElementById("MediaPlayer1").style.width=384;
 document.getElementById("MediaPlayer1").style.height=300;
}
function enLarge(){
 document.getElementById("MediaPlayer1").style.width=480;
 document.getElementById("MediaPlayer1").style.height=402;
}
 //-->
</script>
<title>video</title>
</head>
<body>
<p class='logo'>
<button onclick="enLarge()">large</button>
<button onclick="shrink()">small</button>
<A href="http://www.microsoft.com/windows/windowsmedia/player/download/"><IMG ALT="Get Windows Media Player" SRC="http://www.microsoft.com/windows/windowsmedia/images/logos/getwm/mp11_88x31_static.gif" WIDTH="88" HEIGHT="31" BORDER="0"></A><br>
<OBJECT ID="MediaPlayer1" width=384 height=300 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<PARAM NAME="fileName" VALUE="fullpathto/mymovie.wmv">
<PARAM NAME="showControls" VALUE="true">
<PARAM NAME="PlayCount" VALUE="0">
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="autoStart" VALUE="true">
<EMBED type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" SRC="fullpathto/mymovie.wmv" name="MediaPlayer1" width=360 height=260 AutoStart=true></EMBED></object></p>
</body></html>

This code will stream .asf or .wmv files

almostbob 866 Retired: passive income ROCKS

its called CSS, cascading style sheets
a basic tutorial is http://www.w3schools.com/css/

simply you put a link in the head of each file to the stylesheet
and in the stylesheet define the look of the page
every page looks like the style
change the style sheet, change every page

When you get some code written, it is very much the same as the style in <head> or the width= background= attributes of plain vanilla html, there is a forum dedicated to css, next door to this one, html & CSS forum and there are code mavens who can answer and suggest
CSS :: no longer need tables for layout, position every element where you want it, tighter faster code, less to debug

almostbob 866 Retired: passive income ROCKS

dont use javascript
use css
the focus or active attributes

<style type='text/css'>
#link1 { background-image: url(Pic11.jpg); }
#link1:active { background-image: url(Pic12.jpg); }
#link1:focus { background-image: url(Pic12.jpg); }
#link2 { background-image: url(Pic21.jpg); }
#link2:active { background-image: url(Pic22.jpg); }
#link2:focus { background-image: url(Pic22.jpg); }
#link3 { background-image: url(Pic31.jpg); }
#link3:active { background-image: url(Pic32.jpg); }
#link3:focus { background-image: url(Pic32.jpg); }
#link4 { background-image: url(Pic41.jpg); }
#link4:active { background-image: url(Pic42.jpg); }
#link4:focus { background-image: url(Pic42.jpg); }
</style></head><body>
<DIV ID="nav" align="center">
<TABLE border="0" cellpadding="0" cellspacing="0" width="317px" height="23px">
<TR>
<TD width=47px><a id='link1' href="home.html" class="bhome"  target='myframe'></a>
<TD width=80px><a id='link2' href="werkwijze.html" class="bwerkwijze" target='myframe' name="werkwijze"></a>
<TD width=65px><a id='link2' href="diensten.html" class="bdiensten" OnClick="this.style.backgroundImage='url(gifs/buttons/diensten2.gif)'" target='myframe'></a>
<TD width=59px><a href="nieuws.html" class="bnieuws" target='myframe'></a>
<TD width=66px><a 'id=link4' href="contact.html" class="bcontact" target='myframe'></a>
</TABLE>
</DIV>

focus and active, IE and Mozilla
I find it simpler, to have a transparent.gif for menu images

<style type='text/css'>
a:focus {background:#de7777;}
a:active {background:#de7777;}
</style>
<a href=menubla target=menu.bla><img src='menuimg.gif' width='33' height='33'></a>

and change the background color of the focused choice
2 code lines, any number of menu choices

almostbob 866 Retired: passive income ROCKS
CREATE TABLE Employee
(
Emp_Id int PRIMARY KEY IDENTITY,
LastName varchar(255) NOT NULL,
FirstName varchar(255),
Address varchar(255),
City varchar(255),
postalcode vachar(6),
/* other columns*/
)

not sure about sql server, identity SHOULD be the keyword to make it autoincrement

almostbob 866 Retired: passive income ROCKS

the explanation of the desired function of the script is correct.
but
the script will not work as expected
rollover images are not preloaded
the first time any affected image is rolled over the new image will be downloaded from the server, Nothing will happen for the time that the download takes
the user gets no feedback
absolutely nothing
suggest a different script, or the part of the script that calls the loads the second images be moved out of the functions, to just before the </body> tag so that images appear to mouseover properly

<html>
<head>
<script type='text/javascript'>/* code to control mouseover effect that part of the original script is not totally useless */ </script>
</head>
</body>
Bla bla bla (body html)
<script type="text/javascript">
//<![CDATA[
<!-- 
image1 = new Image();
image1.src = "http://pics.mysite.com/thisimage.1._on.gif";
image2 = new Image();
image2.src = "http://pics.mysite.com/thisimage.2._on.gif";
image3 = new Image();
image3.src = "http://pics.mysite.com/thisimage.3._on.gif";
image4 = new Image();
image4.src = "http://pics.mysite.com/thisimage.4._on.gif";
//-->
//]]>
</script>
</body>
</html>

In the example above image loading is separated from image display
functions to control the display of mouseover images are defined in the head,
the page is fully loaded,
then last,
after the page is rendered mouseover images for image anchors in the body are loaded. the user does not see any delay in page display onload, nor does the page pause during mouseover
If your site delays in …

almostbob 866 Retired: passive income ROCKS

so the end result is an enhaced tooltip,
specific to the region/anchor/link that is clicked

this code sample creates a layer, that embeds in any page to provide tooltips without any external file calls that could be considered security risks

<style type='text/css'>
.bottom { position:fixed; top:20px; left:10px; width:45%; visibility:hidden; padding:10px; margin:10px; background:#ececec; border: 1px solid; }
</style>
<script type="text/javascript">
<!--
(document.getElementById) ? dom = true : dom = false;
function hideIt(layer) {
if (dom) {document.getElementById(layer).style.visibility='hidden';}
if (document.layers) {document.layers[layer].visibility='hide';} }
function showIt() {
if (dom) {document.getElementById(layer).style.visibility='visible';}
if (document.layers) {document.layers[layer].visibility='show';} }
function placeIt() {
if (dom && !document.all) {document.getElementById(layer).style.top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
if (document.layers) {document.layers[layer].top = window.pageYOffset + (window.innerHeight - (window.innerHeight-y1))}
if (document.all) {document.all[layer].style.top = document.body.scrollTop + (document.body.clientHeight - (document.body.clientHeight-y1));}
window.setTimeout("placeIt()", 10); }
window.onload=placeIt;
--></script>
<a title='click for tip about this item' id="tooltip1" href='#' onClick="showIt('layer1');">knife tooltip</a><span id='layer1' class='bottom'>thumbs go over knives <br>knives should not go over thumbs<br><button id="close1" onClick="hideIt('layer1');">Close</button></span>
<a title='click for tip about this item' id="tooltip2" href='#' onmouseover="showIt('layer2');">hammer tooltip</a><span id='layer2' class='bottom' >heads and hammers dont mix<br><button id="close1" onClick="hideIt('layer2');">Close</button></span>

the javascript checks for supported browser DOM and uses the appropriate script for each browser family, so should work on all browsers

the anchors representing the click me for tooltip, and the actual tooltips can be saparated they do not have to be together, the 'popups' will still appear in place and remain visible over the page when the page scrolls

almostbob 866 Retired: passive income ROCKS

why javascript
javascript is blocked on a large proportion of the potential market
passing as a url, the page is being reloaded
best practice; prepare the page serverside, then you can be sure its working as intended
the whole thing appears to be able to be a single php script,
but the description of the task, is terribly incomplete,
post the code in whole there may be something simple

IF you want to integrate javascript and php examine AJAX

almostbob 866 Retired: passive income ROCKS
<?php
if (!$text) {die('No text selected');}
elseif($text='this') {echo '<div class="topbar">anything you like, once php has processed it its just html goes here</div>'; }
elseif($text='that') {echo '<div class="topbar">anything else you like, once php has processed it its just html goes here</div>'; }
 
switch ($text) {
case '':
die('No text selected');
break;
case 'this':
echo '<div class="topbar">anything you like, once php has processed it its just html goes here</div>';        
break;
case 'that':
echo '<div class="topbar">anything else you like, once php has processed it its just html goes here</div>'; 
include ("./menu.php"); 
echo "<br class='dontprint'><p style='margin:0;padding:0'>Property rules<br>All  properties are subject to the following landlord's rules<br>Characters in <i>italic</i> text refer to definitions, acts, and regulations. <br><b><i>Motor Vehicle Act 1989 R.S.,c.293,s.1</i></b> hereafter referred to as (<b><i>MVA</i></b>)<br><b><i>Protection of Property Act 1989 R.S.,c.363,s.1.</i></b> hereafter referred to as (<b><i>PPA</i></b>) <br><b><i>Residential Tenancies Act 1989 R.S.,c.401,s.1</i></b> hereafter referred to as (<b><i>RTA</i></b>) <br><b><i>Domestic Violence Intervention Act. 2001, R.S.,c. 29, s. 1. </i></b><i> </i>hereafter referred to as (<b><i>DVIA</i></b>)<br><b><i>Smoke-free Places Act. 2002 R.S.,c.12.s.1</i> </b>hereafter referred to as (<b><i>SFPA</i></b>)<br>All regulation definitions and interpretation of the above and all Federal Provincial and Local Laws bylaws and Regulations are confirmed.<br><b>Discrimination is unlawful.</b> The intent of this and all other  Apartments documents is not to discriminate. At all times, any word, phrase, mode of speech, that may be considered gender specific or exclusive is to be read and interpreted as gender neutral or inclusive.<br><b>Definitions:</b> For the purpose of these rules:<br><blockquote style=\"margin:0; margin-left:15px;padding:0;\"><b>Tenant </b>shall be those residents signatory to the lease<br><b>Resident</b> shall include all persons lawfully resident in the …
almostbob 866 Retired: passive income ROCKS

using :: file.php?text=this as example

if else

<?php
if (!$text) {die('No text selected');}
elseif($text='this') {echo '<div class="topbar">This Text goes here</div>'; }
elseif($text='that') {echo '<div class="topbar">That Text goes here</div>'; }
?>

switch / case

switch ($text) {
case '':
die('No text selected');
break;
case 'this':
echo '<div class="topbar">This Text goes here</div>';        
break;
case 'that':
echo '<div class="topbar">That Text goes here</div>';        
break;
}
almostbob 866 Retired: passive income ROCKS
<script type="text/javascript">
<!--//
 function setplay(thisfile,ww,hh) {
document.getElementById("MediaPlayer1").src=thisfile;
document.getElementById("MediaPlayer1").style.width=ww;
document.getElementById("MediaPlayer1").style.height=hh;
}
 //-->
</script>
<p><a href="http://www.microsoft.com/windows/windowsmedia/player/download/"><img alt="Get Windows Media Player" src="http://www.microsoft.com/windows/windowsmedia/images/logos/getwm/mp11_88x31_static.gif"width="88" height="31" border="0"></A><br>
<object id="MediaPlayer1" width=384 height=300 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">
<param name="fileName" value="">
<param name="showControls" value="true">
<param name="PlayCount" value="0">
<param name="animationatStart" value="true">
<param name="transparentatStart" value="true">
<param name="autoStart" value="true">
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="" name="MediaPlayer1" width=360 height=260 AutoStart=true></embed></object></p>
<a onclick='setfile("thisfile.wmv","480","300");' > Play thisfile </a><br>
<a onclick='setfile("thatfile.wmv","400","320");' > Play thatfile </a>
almostbob 866 Retired: passive income ROCKS
  • Item1
  • Item2
  • Item3
  • Item3

try styling unordered lists
not sure, but, the default style for lists has a whitespace between li elements

ul {margin:0; padding:0;}
ul li {margin:0; padding:0;}
almostbob 866 Retired: passive income ROCKS

cgi scripts are often self documented
if you open them as text there are often instructions in them that show the configuration options
options are often entered as hidden inputs in the form so the script can handle multiple forms
but it depends on the form handler script
you will have to find the options for the particular script on your
"/bin/script_library/form_handler_mail"

?? about 1/3 chance sorry

<INPUT TYPE="hidden" NAME="end_display" VALUE="http://www.YOURLINK.com"> 
<INPUT TYPE="hidden" NAME="required" VALUE="field1,field2,field3">
<INPUT TYPE="hidden" NAME="email_to" VALUE="yourname@somewhere.com">

the last one is sort of important there can only be 1 action in a form

almostbob 866 Retired: passive income ROCKS

i've used 2nd way(without session)...
i retrived value from DB & stored in a new variable...
i dont know where to echo that variable r else..

could u help?

Just replace the $_SESSION variable in the posts above, with your variabl <input bla bla <?php if($variable='red') { echo "checked"; }} ?> >

almostbob 866 Retired: passive income ROCKS

it can, but sessions are actually easier

returning the value from a sql query the results can be directly assigned to a variable, instead of through the session array,
the session means the information is persistent until the session is closed,
much better if the information has to be retained, without posting it through post or get values between each file
It would probably be best, to spend the relatively short time needed to learn how to create use and destroy sessions
than the extra coding needed to pass the variables back through html gets or posts

almostbob 866 Retired: passive income ROCKS

html
with clickable label

<input type="radio" name="color" id='red' value="Red" <?php if ($_SESSION['color'] == 'Red') {echo 'checked';}?>><label for='red'> Red</label><br>
<input type="radio" name="color" id='blue' value="Blue" <?php if ($_SESSION['color'] == 'Blue') {echo 'checked';}?>><label for='blue'> Blue</label><br>
<input type="radio" name="color" id='yellow' value="yellow" <?php if ($_SESSION['yellow'] == 'yellow') {echo 'checked';}?>><label for='yellow'> Yellow</label><br>

xhtml
with clickable label

<input type="radio" name="color" id='red' value="Red" checked="<?php if ($_SESSION['color'] == 'Red') {echo 'checked';}?>"  /><label for='red'> Red</label><br>

Case altered, 'Red' does not equal 'red'
radio button groups have the same name, that name should be the same name as the value being examined in the $session array, or the response will always be negative/nul/0/no

almostbob 866 Retired: passive income ROCKS

Unlimited? bandwidth diskspace,
unlimited is syonymic for infinite,
not really possible but in
scaleable hosting
second vote for rackspace

on price try theplanet

almostbob 866 Retired: passive income ROCKS
<?php
$dropdown_data = explode(",", $row_rsAppare['Item_Dark_Colors']);
echo '<select name="DarkColor" id ="DarkColor>';
echo '<option selected="selected" value="">Choose Color</option>';
foreach($dropdown_data as $value) { 
echo '<option value="'.$value.'">'.$value.'</option>'; 
}
echo '</select>';
?>
almostbob 866 Retired: passive income ROCKS

1 comes before 2
11 (one one) also comes before 2
like the personal information this IS sort by alphabet order of the field name

130 questions number
001 002 003... 009 010 011... 055 056 057... 128 129 130

without knowing which form processor script,
or without viewing the code,
no-one will be able to tell you what flag to turn off or if the sort can be turned off
you could use a consistent form labelling schema

almostbob 866 Retired: passive income ROCKS

easy fix, dont use flash

there is nothing in that flash menu that can't be done smaller faster simpler in css

almostbob 866 Retired: passive income ROCKS

<img src="images/bg.jpg" name="mainimage" width="419" height="282"> Should be

<img src="images/bg.jpg" id="mainimage" width="419" height="282">

and as previously written by mathewmaxwell

function changeImage(filename)
{
document.getElementById("mainimage").src=filename;
}

<element name= . is not formally deprecated, it just does not work

almostbob 866 Retired: passive income ROCKS

The alert box stops subsequent processing
comment out the alert box as it is in the prior script and it will work
or place the alert box after the function and it will work

almostbob 866 Retired: passive income ROCKS

without even a database, used this code when analysing small sites

stats.php

<?php //stats.php
// Get the user stats.
$getdate = date( 'd-m-Y, H:i:s' );// Get the date time, trhis is a human readable (me) so did not use timestamp.
$user_ip = $_SERVER['REMOTE_ADDR'];// Get the users IP.
$user_browser = $_SERVER['HTTP_USER_AGENT']; // Get the browser type.
$referer = $_SERVER['HTTP_REFERER']; // Get the refering page.
$file = $_SERVER['PHP_SELF']; //get the currentfilename
// Look for the text file and open it for writting.
$file = "pathto/logfile.csv";// define the text file, named as .csv because excell will open csv and be sortable.
$fp = fopen($file, "a+");//open the text file for writing.
fputs ($fp, "$user_ip,$getdate, $referer, $file, $user\n"); // Write the user stats into the text file.
fclose($fp);// Close the text file.
?>

logfile.csv has to exist and be chmod to be writeable by the php user.
in the files you wish to trace

<?php include('pathto/stats.php'); ?>
almostbob 866 Retired: passive income ROCKS

I think I understand
the target attribute of a link should do it
consider a frameset with left and right panes
the left pane includes the menu
the right frame is the display page

index html

dtd
<html>
<head>
<frameset cols='200px,8' >
<frame src='menu.html'  name='menu'>
<frame src='display.html'  name='display'>
</framest>

menu.html

dtd
<html>
<head>
bla bla
</head>
<body>
<a href='choice1.html' target='display'>page1</a><br>
<a href='choice2.html' target='display'>page2</a><br>
<a href='choice3.html' target='display'>page3</a><br>
</body>
</html>

display.html

menu.html[code=html]dtd
<html>
<head>
bla bla
</head>
<body><center>select from left
</center>
</body>
</html>
almostbob 866 Retired: passive income ROCKS

you are trying to run php from the local file system /C:/Documents and Settings/rEd_xiii21/Desktop/programming/ERDI Website Final/Duplicate of Edited Site/
that wont work, even if it is the same folder
php has to run as http://127.0.0.1/filepath/filename.php (or localhost/)
move all the files you wish to work on, below the folder assigned as localhost in your php/wamp/IDE settings and access them though the localhost url
I do not know what php system version/wamp/ide you have installed but the errors now seem to be simply method problems, but a solution is getting closer (nervous fingers crossed)

almostbob 866 Retired: passive income ROCKS

this is a better line16

if(!mail('me@mysite.com',"Inquiry","$message","From: $email " . "\r\n" . "Cc: $email"."\r\n")) {echo "Sending failed,"; } else { echo "Message sent."; }
almostbob 866 Retired: passive income ROCKS

php forms can be self processing, its easy to debug one script, try

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- @(#) $Id$ -->
<head>
<title>HTML Template</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body>
<?php if (isset($_POST["submit"])) 	{
  if(!$_POST['name'] || !$_POST['email'] || !$_POST['question'] )     
  { echo "Required fields not completed, please input the required fields."; }
 else { $name = $_POST['name'];
  $email = $_POST['email'];
  $question = $_POST['question'];
  $message = wordwrap("Message from $name \n Message: $question", 70);
  if(!mail($email,"Inquiry",$message)) {echo "Sending failed, please input the required fields."; } else echo "Message sent.";
 } } ?>
<form name='FAQ' method='post' action='<?php echo $_SERVER["PHP_SELF"]; ?>'>
<table cellpadding='0' cellspacing='5' border='0' width='500' align='center'>
<tr>
<td width='150'><p class='content'>Name: * </td>
<td width='350'><input type='text' size='55' name='name'></td>
</tr>
<tr>
<td width='150'><p class='content'>Email Address: * </td>
<td width='350'><input type='text' size='55' name='email'></td>
</tr>
<tr>
<td width='150'><p class='content'>Question: * </td>
</tr>
<tr>
<td width='350' colspan='2'><textarea cols='59' rows='5' name='question'></textarea></td>
</tr>
<tr>
<td colspan='2' align='right'><input type='submit' value='Submit' name='submit'></td>
</tr>
</table>
</form>
</body>
</html>

but the message is only being sent to the sender, no address is specified for you
Try replacing line 16

if(!mail('myaddress@mysite.com',"Inquiry",$message,"Cc:$email\r\n")) {echo "Sending failed, please input the required fields."; } else echo "Message sent.";

message to "customer service", copy to sender
all necessary html headers are sent before any script output, in case malformed pages are being thrown out by the server,

almostbob 866 Retired: passive income ROCKS

doing it yourself is in the too hard basket
WAMP (windows apache mysql php) will install it all as a package that works together. http://www.soft-go.com/view/WAMP5_20010.html

almostbob 866 Retired: passive income ROCKS

perl scripts in the /cgi-bin/ folder and just point the action of the form at the perl script <form id='Globe' action='/cgi-bin/process.cgi' method='post'> Not even sure if perl scripts work outside of the cgi-bin folder, ?

almostbob 866 Retired: passive income ROCKS

Agree with Xan's code fix


embedding php inside html, it is important to get all the quotes in.
only add a usefula(maybe) caveat to the code he provided, a recommendation to change whatever editor used to something that code highlights
It becomes easy to see when something is missing if the text is some bright colour when a(the) quote(s) Brace(s) Bracket(s) < > is(are) missing
Notepad++ Notepad2 & a bunch of good code highlighting editors

without the quotes output html for a nul field is value= /> your visble backslash
with quotes a nul gives value="" />

almostbob 866 Retired: passive income ROCKS

topic body: <br />

almostbob 866 Retired: passive income ROCKS

There is an add in library for this function,
not sure how good it is,
http://phplens.com/phpeverywhere/node/view/16

almostbob 866 Retired: passive income ROCKS

this is better

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
<head>
<title>Add help</title>
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="Mon, 22 Jul 2000 11:12:01 GMT" />
<!-- Put IE into quirks mode -->
<title><?php echo HOSTDESCRIPTOR ?>: HelpPage</title>
<link rel="stylesheet" type="text/css" href="CSS/Help.css" />
<link rel="stylesheet" href="/CSS/custom-theme/jquery-ui-1.7.1.custom.css"/>
<link rel="stylesheet" href="/CSS/SiteWide.css"/>
<script type="text/javascript" src="/JavaScripts/DWjQuery.js"></script>
<script type="text/javascript" src="/JavaScripts/CL/ComponentLoader.js"></script>
<script type="text/javascript">
$(document).ready( function()
    {
    //load the standard headers.
    $("#header").LoadComponent("<? echo STANDARD_HEADER;?>");
    });
</script>
</head>
<body bgcolor="#eeeeee">
<div style='text-align:center'>
<h2>Amend/Delete Help Record</h2><br>
<form id="HelpUD" name="HelpUD" action="HelpUpdate.php?UID=<?php echo $ID ?>" method=post enctype="multipart/form-data">
<table style="hidden">
<tr><td>Record Type:</td>
<td><input type='text' readonly id="RecordType" name="RecordType" value="<?php echo $ParentString ?>" >
</td></tr>
<tr><td>Topic Title:</td>
<td><input type="text" id="TopicTitle" name="TopicTitle" value="<?php echo $TopicName ?>" maxlength="25">
</td></tr>
<tr><td>Parent:</td>
<td><input type='text' id="Parent" name="Parent" value="<?php echo $Parent ?>" />
</td></tr>
</table>
Topic Body:
<textarea cols="60" rows="10" id="TopicBody" name="TopicBody" value="<?php echo $Topic ?>"></textarea>
</div>
<p><font color='red'><?php echo $Message ?></font></p>
<input type='button' value="Back" onclick="BackClick()" />
<input type='button' value="Delete" onclick="DeleteHelp()" />
<input type='button' value="Update" onclick="UpdateClick()" />
</form>
</div>
<div id="header">loading...
</div>
</body>
</html>

the best criticism/advice I can offer is to use a code highlighting editor, notepad2 notepad++ or any of the others, that will show you when you have forgotten to close a quote.
the code is not valid xhtml see the new line 2, there are other bugs, validate by pointing the validator at a test run url, so there is a value in the script variables
this tool http://validator.w3.org/ will help you …

stockton commented: Thank you for the suggestions +2
almostbob 866 Retired: passive income ROCKS

** the above is not be valid code in all circumstance **
it validates if <label> is inside one <td> but does not if <label> spans more than one <td> or <tr>

apologies

almostbob 866 Retired: passive income ROCKS

html <label> tag
anything within the label is clickable for the checkbox

<label for='check1'>Entire Row<!-- any kind of code --> <input type='checkbox' id='check1' value='yes'> Yes <!-- any kind of code --></label>