almostbob 866 Retired: passive income ROCKS

I use a javascript to create sortable tables from javascript.internet.com
sortable tables et al , a really Workable HowTo and samples
others will suggest reloading the page from the server with a different sql query, but server time, download size etc and the difference between instant sort and page refreshing

& I agree with Excizted, the formatting is fuc..uhm- odd

almostbob 866 Retired: passive income ROCKS

Includes are the right way to go
the file is processed as a single file includes are not separate
if the validation authentication were the first lines in include.php they are processed first, no part of the page is output to the browser untill after that include
the exit will always take place before browser output as long as only php functions that do not output to screen are in those include files
your worries seem to be baseless
changing back to no-include files would be an extreme retrograde step and increase the number of edits to individual pages not decrease them

almostbob 866 Retired: passive income ROCKS

you could, as a last ditch effort, if all else fails, after you've complained, go to php.net and RTFM

here let me Google that for you

almostbob 866 Retired: passive income ROCKS
almostbob 866 Retired: passive income ROCKS

to have php in your 'style.css' file is not difficult,
rename style.css style.css.php
link to it as <link rel="stylesheet" type="text/css" href="/style.css.php"> first line of style.css.php <?php header ('content-type:text/css'); ?> file will be parsed as php but outphut as css, then you can use any php to rotate the image in body { background :url(<?php image rotator ?>); } or do anythinbg else to the css you want on the server, the stylesheet downloaded will remain in the .tif for the duration of the seesion but be refreshed on next login, with a different background

almostbob 866 Retired: passive income ROCKS
Lusiphur commented: Thank You!! +1
almostbob 866 Retired: passive income ROCKS

for 'google is your friend' I always like "Let Me Google That For You' and 'Just f_ing Google It' to bring a little levity to the reply

its not urgent to ME no matter how many capitals there are

Lusiphur commented: My sentiments exactly! +1
almostbob 866 Retired: passive income ROCKS

that was not my intent, the javascript framebreaker is editable out, if you edit the site yourself just comment out that script
or if the proz site is one of the fill-in-blanks check the security settings for an option to 'protect' the content and uncheck that option,
or contact proz.com where it is your folder on their site and your site, they may provide for suitable attribution 'aavailability calendar from [link to]proz.com' access to the calendar
or check the faq at proz.com there are often other pages (where you include your id etc) for linking to site resources from outside sites, we provide 'util.php' that can be accessed offsite for subscribers to include 'our' resources in 'their' page,

almostbob 866 Retired: passive income ROCKS
<script language="javascript" type="text/javascript">
if (top.frames.length != 0 ) {  top.location = self.document.location; }
</script>

this code in the head of your proz.com site is called a framebreaker, (one of several types) so that it will not appear as content in an external site, including yours

almostbob 866 Retired: passive income ROCKS

http://translateth.is/docs
after all else fails RTFM,
the drop down function appears to be hardcoded even with very few languages selected

almostbob 866 Retired: passive income ROCKS

validate the code, html is fubar
a standards compliant browser would not render that,
xhtml requires all values quoted in html attributes, attribute='value'

methods for navigator.javaenabled true/false,
try something like

if (navigator.javaEnabled()) document.frmDetails.java.value="Yes";
else document.frmDetails.java.value="No";
almostbob 866 Retired: passive income ROCKS

It was a plug for a product, DevPHP, in breach of the spirit of DaniWeb\, levity humour, forgetaboutit

the code scrap works for me

almostbob 866 Retired: passive income ROCKS

show the code, for the script that does not work

almostbob 866 Retired: passive income ROCKS

blatant plug dont bite me freeware no $$ changes hands
using DevPHP from sourceforge, a php IDE that lets you toggle between the mozilla and IE rendering engines,
code scrap works for me
except:: standard-complaint brower would normally be standard-compliant browser :)

perhaps a rephrasing such as 'pages render better in a compliant browser'

almostbob 866 Retired: passive income ROCKS

There is nothing wrong with the output, correct browser strings, you did not bother to look up what the http_user_agent strings were
design your code around the actual values of the variable, the variable will not alter to suit your expectations

windows xp really needs to be updated beyound service pack one

almostbob 866 Retired: passive income ROCKS

the OP is 'interesting'
but a fine example of what not to do

write what you wish to achieve,
you have a function unix2data that you do not define for anyone to see,
nor do you explain the expected results, or the expected inputs

almostbob 866 Retired: passive income ROCKS

cant help you, but I can make it easier for those who know how to asnwer, to be able to help you, the screen shots are useless to anyone
post the code of the page, between
[code=html] put code here

[/code]
code tags so that one of the html mavens can sort out the issues, tables are very 1980s

almostbob 866 Retired: passive income ROCKS

the default for multiple addresses is separated by ; semicolon
try just editing the to: address address1;address2

almostbob 866 Retired: passive income ROCKS

its the action in the form, that provides the uri of the next page onsubmit

almostbob 866 Retired: passive income ROCKS

couple of codescraps that go with this thread even though its solved,

<script type="text/javascript">function theChecker() { if(document.getElementById('agree').checked==false) { document.getElementById('subm').disabled=true; } else { document.getElementById('subm').disabled=false; } }</script>
<input type='checkbox' id='agree' name='agree' id='agree' value="Confirmed" onclick='theChecker();' /><label for='agree'> I agree to the rules </label>
<button type="submit" title="Click To send completed form" onclick='return confirm("Are all Required fields complete? ");' id='subm' name="submit" value="Send" disabled='disabled'>Send</button>

the submit buttons greyed out until the agree button is checked, as above solution shows
and the submit button has an "Are you sure" prompt
<label> provides the now-almost-standard clickable checkbox text

almostbob 866 Retired: passive income ROCKS

stew dumplings, beer
Happy Canada day

almostbob 866 Retired: passive income ROCKS

ignore above, misinterpreted question,

almostbob 866 Retired: passive income ROCKS
.header { width: /* etc */ }
.footer { /* bla bla */ }
.printheader { width: /* etc */ }
.printfooter { /* bla bla */ }
@media print { 
.header {display:none;}
.footer { display:none; }
.printfooter {display:block;}
.printheader {display:block;} 
}
@media screen { 
.header {display:block;}
.footer { display:block; }
.printfooter {display:none;}
.printheader {display:none;} 
}

segments of css, defines headers and footers for print or screen and toggles between which ones are displayed depending on output, great for including copyright messages on printed version of the page

@media print {.header {display:none;}
.footer{display:none;}}

simple version just hides class='header' and class='footer' when printing

almostbob 866 Retired: passive income ROCKS

If anyone thought there was anything other than newness as the source,
ya wouldn' believe how **expletive deleted** some of the replies would be,

almostbob 866 Retired: passive income ROCKS

You read this thread, and everypost resonates :(

almostbob 866 Retired: passive income ROCKS

what you are asking for is not what you are attempting
you asked for a form processed by a php form handler after it has been validated by a javascript ?
wrong way to do things
javascript validation isnt validation, it can be faked wrong blocked disabled
the form should submit to the form handler to be validated, basic javascript validation can be used, prior to submission, but its no value for real work
if validation fails, return to the form for correction

<form method='post' action='phpscripthandler'>
<input name='ralph' value='<?php if isset($_GET['ralph'] echo $_GET['ralph']; ?>'><label for='ralph'> ralph</label>
bla bla bla

example code ralph is populated with return values from the handler script to be edited for resubmission

almostbob 866 Retired: passive income ROCKS

something like

<form action='submit_me.php' method='post' onsubmit='validate_javascript();'>
bla bla bla
<input type='submit'></form>
almostbob 866 Retired: passive income ROCKS

that is an unneccessarily convoluted way to echo text, what do you actually want to achieve

almostbob 866 Retired: passive income ROCKS

never buy anything that locks you to a single proprietary format, routinely they go belly up.
apple consider they are the exception,
but 30 years and 3% of the market??

almostbob 866 Retired: passive income ROCKS

from php version ?? to php version ??
the php.net website has a long list of details on the upgrade from one version of php to the next, lilkely you can go there and find details on what syntax is changed
often an variable that was able to be accessed as $variable has been changed so that it is accessed as $_server['variable'] $_get['variable'] or some other simple change
without knowing the two versions of php incvolved we are all shooting in the dark

when submitting code wrap it in [code=language] code [/code] tags where 'language' is php|html|css|perl|javascript|sql (any language) and the code will be presented appropriately highlighted,
often people who know the solution, wont bother if they have to wade through plain text

almostbob 866 Retired: passive income ROCKS

'hello world' is the traditional first program when learning any programming language
tradition is important ?(not)

almostbob 866 Retired: passive income ROCKS

humour

<?php echo 'hello world'; ?>
almostbob 866 Retired: passive income ROCKS

You have to COMPLETE registration and go to the control panel to get the code

when all else fails RTFM

almostbob 866 Retired: passive income ROCKS

once you have determined what server scripting language your host package supports, google a basic tutorial
w3schools.com has many, not perfect but,,,,
the correct code is already published, thats what the html/css php asp forums on this site do.
the include scrap works,, for shtml not html <?php include('filename'); ?> for php

experiment
attempt
ask
and whichever language you find to use, there will be someone to answer

xxxservicexxx commented: nice +1
almostbob 866 Retired: passive income ROCKS

the google search would be

css dropdown menu

css dropdown flyout menu ( for multiple levels )

javascript is unneccesary, the use of flash is pathetic

almostbob 866 Retired: passive income ROCKS

there is no width set for the body, so you get the browser defaults
try

#footer{ width:100%; height:23px; background-image:url('../img/site_layout/footer_gradient.gif'); background-repeat:repeat-x; 	margin-top:40px; margin-bottom:-8px; text-align:center; }

try also to get away from pixels for layout
px dont work, on any monitor except yours the layout may be totally unviewable, users leave in droves if there are horizontal scroll bars, mice dont have hscroll wheels
and if they have a widescreen, most of the screen is unoccupied

px dont adjust to user preference
px become vanishingly small on hi res-monitors, annoyingly large on low res (like handheld) devices
current best practice is ems , % for anything except an image, images are pixel sized
using a relative scale, like an em or %, allows for accessibility,
blind freddy to set his basefont to 100px,
your site adjusts to a font that blind freddy can read, based around 100% or 1em being 100px
for blind freddy, 14px might as well be 1pxto any visually impaired person named Fred, blind freddy is an archetype not an individual

almostbob 866 Retired: passive income ROCKS

the time limit is 30 minutes on editing
the .ie version works
consider nailing the dotcom as well for future expansion or name recognition,

looking at the css

almostbob 866 Retired: passive income ROCKS

the code supplied is WRONG
includes do not work in html
includes require shtml
the filename has to be altered to shtml and the server has to be configured to parse .shtml for server includes
base level hosting likely will not include .shtml .php or .asp
php & asp EAT .shtml for ability, popularity, available resources

useless codescrap

if wishing to ustilise server scripting of any sort, determine what the host package supports and use the highest

if a *n?x host likely supports .shtml and .php,, use php
if a windows host likely supports .shtml and .asp,, use asp (and get treatment whatever condition made you choose windows hosting :D )

almostbob 866 Retired: passive income ROCKS

there is only a parking notice

at least 3/4 of the parking page is blocked as malware
and I'm not going to disable the block

post the html and css of the page, the source view is useless for a php page

almostbob 866 Retired: passive income ROCKS

just a thought not verified code

// DB info here
$curDate = date("Y-m-d");
$query = "Select venue from programOutline where date = $curDate";
$result = mysql_query($query);   
 if(!$result) {echo 'No program today';}
 while ($row = mysql_fetch_array($result)){ echo "Today's program is at " .$row ['venue']; }
almostbob 866 Retired: passive income ROCKS
<?php $mobile = "http://mobi.mysite.com/";
if(preg_match('/Windows CE/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/Blackberry/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/PalmOS/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/PalmSource/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/SymbianOS/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/Opera Mini/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/Nokia/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/Samsung/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/vodaphone/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/Jphone/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/AvantGo/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/DoCoMo/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
elseif(preg_match('/DDIPOCKET/i',$_SERVER['HTTP_USER_AGENT'])) { header("location: $mobile");}
// redirect to pda page else continue
ob_start("ob_gzhandler"); ?>

for testing purposes,, KB charges are annoying http://demo.opera-mini.net/demo.html?www.mysite.com

almostbob 866 Retired: passive income ROCKS

javascript onmouseover onmouseout are unneccessary BS
css menus use
ul {}
ul.hover {}

definitions to achieve the same effect
try one of the sites that offer to code it for you

http://purecssmenu.com/

almostbob 866 Retired: passive income ROCKS

In what form is the date stored, as a date object or in some text form, comparing DMY d - m y y-MD makes a lot of difference, it may be impoosible to match different date formats

edit, impoosible ?? ha ha

almostbob 866 Retired: passive income ROCKS

show your code, one of the gurus will be able to point you right

almostbob 866 Retired: passive income ROCKS

every array,

edit lost a bit there

every array starts as array[0]

almostbob 866 Retired: passive income ROCKS

show the code with which you place the background
is the background a tiny repeat-x, or a large image
otherwise shooting in the dark

almostbob 866 Retired: passive income ROCKS

try it without all the cellpadding and cellspacing attributes in images, <img> does not support cellanything

try it with all the measurements having a dimension <td width='22'> fails <td width='22px'> does not (px em % mm inch pt)

<self closing tags /> work only with xhtml there is no dtd in the code given, => html2

<img> has required attributes, not given

almostbob 866 Retired: passive income ROCKS

There is good reason why you seldome see <base>, it seldom works
declaring relative links start at XXX is a total stuffup, is difficult to maintain, does not allow portability

almostbob 866 Retired: passive income ROCKS

you try, you succeed,all good
you try, you fail, you ask "what is wrong with this attempt I made" and you post your code attempt,
someone will help you fix it, you learn, you succeed all good
we do your homework, you dont learn, not good.
not gonna happen
BossLady writes "we dont do homework"

your problem, and therefore the course being taught, is hopelessly out dated, \'new windows\' are precluded by popupstoppers, current practice is to have larger images open in a layer of, or over, the existing window, positioned in css.
whatever you learn from this garbage course will not be applicable to the real world any time after ~1998/99.

almostbob 866 Retired: passive income ROCKS

just to clarify,
you want to
break the list into two columns,
of approximately equal size,
break at country headings, not states so the top of each column will be a country name,
using the correct number of states per country read from the database( Australia has 9 not 3 the US has 50)

not merely break the list at an arbitrary centre point regardless of content, not leaving orphaned country/state names at the bottom of the first column that relate to other items miles away at the top of the second column..