almostbob 866 Retired: passive income ROCKS

try using the recommended dimensions ems and %, 1000px will push offscreen in part windows or small devices, 100% will not

referring to the question asked, there will be conflict between the absolute positioning of the footer and the content, setting position from screen bottom may aleviate the issue,
setting fixed sizes for any screen element other than an image causes serious problems for potential users, I am keying this on a 1200*600 laptop screen while working(?) so the forced positioning will push the footer and part of the content offscreen and never be onscreen
current best practice would put your footer at the bottom and allow the content to scroll under it to become visible

most users are NOT using the same screen as the developer

#footer { height:285px; margin-top:10px; padding:0; postion:absolute; top:700px; 	width:1000px; } 
/* try */
#footer { height:285px; margin-top:10px; padding:0; postion:fixed; top: auto; bottom:0; 	width:100%; }

note:; zero is the only dimensionless number
line-height:1; must be dimensioned, as line-height:1em(100%,14px,10pt etc) or browsers may display in quirks mode = all bets are off

almostbob 866 Retired: passive income ROCKS

line six while (($column = fgetcsv($file,1024," "))!== false) tells the parser to separate coulmns at the space character which includes the comma as data while (($column = fgetcsv($file,1024,','))!== false) (comma)

or while (($column = fgetcsv($file,1024))!== false) (default)

should work
reference http://php.net/manual/en/function.fgetcsv.php

almostbob 866 Retired: passive income ROCKS

this thread parallels web design,,
wants
works
works better, solved

almostbob 866 Retired: passive income ROCKS

write them to javascript variaqbles

<script type = 'text/javascript'>
var hp=<?php echo $hp; >
var ac1=<?php echo $acv1 ?>
</script>

this would be the perfect place to implement AJAX to update the database with the combat details

almostbob 866 Retired: passive income ROCKS
<?php 
$thisfile = substr($_SERVER['REQUEST_URI'], strrpos($_SERVER['REQUEST_URI'], '/') + 1);
if ($thisfile == 'index.php') { echo 'Home'; } else{ echo '<a href="index.php">Home</a>'; }
if ($thisfile == 'one.php') { echo 'menu1'; } else{ echo '<a href="one.php">menu1</a>'; }
if ($thisfile == 'two.php') { echo 'menu2'; } else{ echo '<a href="two.php">menu</a>'; }
/*  etc  */
?>

just one possibility of many

pjrey commented: man, its not me being lazy, i am really trying on my own, finally, when i give up hope, i come here and post, and BOOM almostbob helps out everytime! very quick, very helpful, i am very gratefull! it is so nice of him to give his time to help me! pj +2
almostbob 866 Retired: passive income ROCKS

My apologies, I did not read,
nor can I see anything that says
"look at what the ** did, this is a personal attack"
you could have accepted that someone else thinks the same way you do
or you could
traho vestri caput capitis ex vestri rectum

almostbob 866 Retired: passive income ROCKS

<!-- style out in the external stylesheet usually -->

.con {height:300px;width100%;}
.in {width:25%;height:100%;float:left;
<div class='con'>
<div class='in'><img src="image1"><br>description 1</div>
<div class='in'><img src="image2"><br>description 2</div>
<div class='in'><img src="image3"><br>description 3</div>
<div class='in'><img src="image4"><br>description 4</div>
</div>
<div class='con'>
<div class='in'><img src="image5"><br>description 5</div>
<div class='in'><img src="image6"><br>description 6</div>
<div class='in'><img src="image7"><br>description 7</div>
<div class='in'><img src="image8"><br>description 8</div>
</div>
almostbob 866 Retired: passive income ROCKS

I like tables for tabular data, its much easier to sort a table by column to change the view of data, by name size, address, etc. but that is for data that is tables, the layout of my tables, the way they look, is set in css,

almostbob 866 Retired: passive income ROCKS

set a session value, with appropriate timeouts for inactivity

<?php If (!isset($_session['loggedin'])) {
 /* the login form goes here */ 
} 
else { 
/* the "hello user how's the wife and kids" goes here */ 
} ?>

set a cookie value to remember login details

just a possiblity

almostbob 866 Retired: passive income ROCKS

inside that one file, an array
$changes = array(
item => html content for that item
thingsthatchange.php

<?php $thingsthatchange= array(
'dates' => '1 may 2010 to 1 October 2010<br> season may be extended if the weather is really good in October',
'address' => '21 jump street',
'telephone' => '123 456 7890',
'somethingelse' => 'any html at all as long as quotes are escaped to not cause errors',
'menu' => '<ul class="menu"><li>item</li><li><ul class="submenu"><li>item</li><li>item</li><li>item</li></ul></li><li>item</li><li>item</li><li>item</li></ul>'
); ?>

and in the top of any page where any of this may be required

<dtd>
<?php include('thingsthatchange.php'); ?>
<html>
<head>
<?php echo $thingsthatchange['headers']; ?>
</head><body>
<?php echo $thingsthatchange['menu'];?>
content bla bla bla bla
<?php echo $thingsthatchange['contactus'].$thingsthatchange['footer'];?>
</html>

just one possibility,
I prefer separate head/menu/footer/date/contactus inserts because they change with different frequencies, but like everything its pers. preference
I have a folder /includes for them
head.php
menu.php
contactus.php
hoursop.php
locations.php
footer.php
the contactus page just lookslike

<?php include('/includes/head.php');
echo '<title>Contact Us</title>';
include('/includes/menu.php');
 include('/includes/contactus.php');
 include('/includes/locations.php');
 include('/includes/hoursop.php');
 include('/includes/footer.php');
?>
almostbob 866 Retired: passive income ROCKS

after all the tests with return false, just before the final closing brace return true }

almostbob 866 Retired: passive income ROCKS

sorry, web standards is not real life standards ok. there is absolutely no dtd needed for a website to display in all the major browsers such as firefox ie flock chrome safari..opera even

so u need to just take that attitude ang get some respect for real life standards.

16th Nov 2009
well i had to use a doctype once for certain positioning on a big image( abunch of divs) cause it didnt work without the doctype. why i dont know... but all my other pages i dont add docs because well... i looked and looked and didnt understtand a thing i read on doctypes. .

cause it didnt work without the doctype
and that is in the one browser that skank uses
the other 99.999% of possible browser OS combinations.....
with apologies for the perjorativedumb as a stumpignorance can be fixed, by teachingyou cant fix stupid

almostbob 866 Retired: passive income ROCKS

somebody is going to ask

sig spammer:noun:perjorative; one who posts irelevant answers in forums with a high PR to get their sitelinks noted in SE

see also: idiots who have not heard of nofollow

almostbob 866 Retired: passive income ROCKS

precisely why do you imagine the variable
CountryStateArray,
is not called
CountryStategee whiz, its an array
html <select> on submit parses to
option => valuegee whiz, its an array
NEXT::
javascripts are not language='javascript'
javascripts are represented as type='text/javascript'
the country state selector you downloaded is very out of date
(the Australia array is missing AAT (at 6,000,000 sqKM the largest landmass on earth) and NI), and may not function in some browsers untill the code errors are corrected

almostbob 866 Retired: passive income ROCKS

html <label> tag <-- cute response too

the label tag provides the now standard clickable text that toggles radio buttons, the user does not have to get the mouse on an 8px area. improves the UI, and behaves as the user expects

id is unique to a single element getElementByID(id), for=id, only reference a single element (ensuring the label toggles only the input to which it is attached)
name is not unique, all radio buttons in a set have the same name

attributes are 'quoted' so I added the required quotes to the values, unquoted values = 'quirks mode' = where did my page go

EDIT::just noticed there is an error in post4, lable is supposed to be label, may be obvious but JIC

almostbob 866 Retired: passive income ROCKS

code is broken,
examine the color coded html in the op,
you will notice that all the unencoded ' in the arrays change the colorscheme. this indicates the code is broken at that point
the code will not work correctly untill you repair all those improper apostrophes to
&apos; or & # 3 9 ;(broken on purpose no spaces in the green text, daniweb's ui keeps parsing the scrap to an apostrophe even if noparse is set)
the broken &apos; expose reserved words like 'in' 'for' 'do' in your array, see also the color code in the op

return script value of true if all tests pass

function {
test { /*.bla bla bla */; return false }
test { /*.bla bla bla */; return false }
test { /*.bla bla bla */; return false }
test { /*.bla bla bla */; return false }
return true }

errors would be apparent in the code with the use of a code highlighting editor, most editors have code highlighting, but you have to turn it on
if using an editor without code highlighting I get good results with notepad++

almostbob 866 Retired: passive income ROCKS

.htaccess .htpassword is less efficient than per user access control through settings stored in the database with the user details.
The reason why all access controlled sites use this method instead of .htpassword.
What we do personally, becomes irrelevant when the site is not personal, still use .htpassword to further lock admin-only folders, belt and braces approach

almostbob 866 Retired: passive income ROCKS

Gee Evolution,
Kudos for the politeness
I would have just written RTFM

almostbob 866 Retired: passive income ROCKS

either check the existence of the data

<td> <input type='radio' value='No' name='manager' id='managerno'><label for='managerno'> No</label> 
<input type='radio' value='Yes' name='manager' id='manageryes'><label for='manageryes'> Yes </label></td>
<?php
if(isset($_post['manager'])) { $manager = $_POST["manager"]; } ?>

Or
Give a default answer so the data field is populated

<td> <input type='radio' value='No' name='manager' id='managerno' checked='checked'><label for='managerno'> No</label> 
<input type='radio' value='Yes' name='manager' id='manageryes'><lable for='manageryes'> Yes </label></td>
$manager = $_POST["manager"];

the <label> tag,, Gold

almostbob 866 Retired: passive income ROCKS

echo $_post['form_action']; and make sure the 'submitted' value is what you expect
$post is set to the form value, and the value is 'submit' 'Enter'(button label)
I dunno
could be something simple

almostbob 866 Retired: passive income ROCKS

welcome

or use an array of ud/html

<?php
$UD = array(
'yes' => 'this way up',
'no' => 'other way up',
'up' => 'down',
'down' =>	'up',
'green' => 'red',
'red' => 'green'
);

if(all_condtions_as_b4) { echo $UD["$_post['ud']"]; } ?>
almostbob 866 Retired: passive income ROCKS
<?php if(isset($_post['ud'])) {
if(($_post['ud']=='first allowed entry')||($_post['ud']=='second allowed entry')||($_post['ud']=='third allowed entry') ) { include("$_post['ud'].php"); }
}
else include("default.php");
?>

permitted values include a php scrap containing the html appropriate to the value
there can be any number of acceptible values and insert pages
its not pretty, but its a thought concept

almostbob 866 Retired: passive income ROCKS

I was remiss, what a mess, functional but UGLY

  • used <font> tag(for no real reason I can see)
  • didnt close <font>
  • didnt explain that the two versions of each function hideit showit were to ensure the script worked in most browsers >ie5 and >ff1 who have different DOM
  • didnt put any explanation at the hidden layer

headslap moment

almostbob 866 Retired: passive income ROCKS

as you would any other html elements
either drop out of php and use html,

<?php /* bla bla bla */ ?>
<script type='text/javascript' src='http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=150&h=50&title=&border=0&output=js'></script>
<?php  /* bla bla bla */ ?>

or echo the script code

<?php /* bla bla bla */
echo '<script type="text/javascript" src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/translatemypage.xml&up_source_language=en&w=150&h=50&title=&border=0&output=js"></script>';
/* bla bla bla */ ?>

edit:: when I type this, html entities are &encoded, they display as the entity in Daniweb unless d which would negate

almostbob 866 Retired: passive income ROCKS

I can't see quality in anything that comes for free.:S

PHP ?

almostbob 866 Retired: passive income ROCKS

DAWN, THIS INTERESTES ME. does this mean in html5 you can play videos and such media with slverlight and java? couldnt u do that before? i dont understand,

html5, spec includes native media player, without silverlight flash java or other plugin
http://dev.w3.org/html5/spec/Overview.html

almostbob 866 Retired: passive income ROCKS

as for compliant, or interoperability,,, MS don't care
Windows has 91% of pcs
IE has 75% of the market
IE is the standard,
no matter what any consortium decides,

almostbob 866 Retired: passive income ROCKS

deefensive little bugger aint I,
the op asked for a text field to popup not a page
dos vdanye

almostbob 866 Retired: passive income ROCKS

Why not just have a username box which may be left blank?
Personally I find popups annoying, and clicking in one box solely for the purpose of causing another one to pop up would be doubly so.
Besides, users who have popups blocked (as I do) will never see it.

the code sample is not a popup, so you will see it, its the same as the descriptive text used in this page
Flush

almostbob 866 Retired: passive income ROCKS
<script type="text/javascript">
(document.getElementById) ? dom = true : dom = false;
function hideIt() {
if (dom) {document.getElementById("layerm1").style.visibility='hidden';}
if (document.layers) {document.layers["layerm1"].visibility='hide';} }
function showIt() {
if (dom) {document.getElementById("layerm1").style.visibility='visible';}
if (document.layers) {document.layers["layerm1"].visibility='show';} }
--></script>

<input type='radio' id='radiono'name='radioone' value='no' ><label for='radiono'>NO</label> 
<input type='radio' id='radioyes' value='yes' onClick="showIt();"><label for='radioyes'>YES</label>

<div id="layerm1" style="position:fixed; width:50%; visibility:hidden; padding:10px; margin:10px; background:#ececec; border: 1px solid;">
<center><font size="+1"><input><br><input>
<button onClick="hideIt();">Close</button></div>
almostbob 866 Retired: passive income ROCKS

.shtml includes, similar & different

<!--#include file="calendar.html" -->

and it can do all the duplicate stuff the same way as php,
with the header menu footer any content that is duplicated
includes is always the first transition from
'my first website ' to 'my second website'
php is more developed, there are more scripts for it and it can do more, then ssi, but its another learning curve, thats no good if you don't need the site to do more

almostbob 866 Retired: passive income ROCKS

the filenames of files that are to be server-acted upon have to be altered
ssi have to be .shtml
php have to be .php
so the href of links to those pages have to be altered
but you only have to do it once
the bonus is the same code can include your menu headers footers on each page so you only have to edit anything once, to change every page

<!--old page -->
<DTD>
<html>
<title>
<script>
bla bla
</script>
<style>
bla bla
</style>
<meta tag>
<meta tag>
<meta tag>
<meta tag>
<meta tag>
</head>
<body>
menu
bla bla bla

content
calendar
bla bla bla

foooter,
contactus
bla bla bla
</body>
</html>

that must be individually edited for every page,, becomes

<?php include('head.php'); ?>
<title>
<?php include('menu.php'); ?>
content
<?php include('calendar.php'); ?>
bla bla bla
<?php include('footer.php'); ?>

so if your address changes when you move warehouses, you just edit 1 footer.php file, not 900 pageshaving a good day

almostbob 866 Retired: passive income ROCKS

most javascript table sorters rely on the tab le being given a class='sortable' (or similar)
and <th> elements have to be in the first row of the table to be clicked upon to sort
often requires a

echo "<tr><th>column1</th><th>column2</th><th>column3</th>";
."...<th>column999</th></tr>";

be added before the generated output rows to give the required column headers
but
read the instructions and make sure the table generated by php matches the format required by your sortable.js,

almostbob 866 Retired: passive income ROCKS

if you must use javascript, javascript security is a joke
hash the password, and only put the hash in your file
then hash the entered password and compare the hashes
it is more difficult to work an md5 or sha1 backwards to get the text

security is usually configured at the server
an ajax call to verify the password, or submitting the page for server verification is preferred to anything clientside

almostbob 866 Retired: passive income ROCKS

K,
stay with it till there is something in html 5/6 that you need

almostbob 866 Retired: passive income ROCKS

zero has no dimension, 0px is 0em is 0pt is just 0,
you cant set an absolute width and expect padding to always work, if the text comes to less than 20px of the element width and there is not a place where the text can break, it wont break
height:80% wont always work either, page height is not a constant, not defined untill the page is rendered, window height is different between browser versions
browsers into quirks modes that act unpredictably
try

#text-right2 { position:absolute; top:0; bottom:auto; right:0; left:auto; width:33%; height:80%; padding-left:20px; }

still will not work in all browsers

almostbob 866 Retired: passive income ROCKS

Ignoring the op at least till the laughter stops

K
Dreamweaver isnt bad, the code it produces inearly versions, is bloated
have no experience with any dreamweaver version newer than4 years so that may be wrong
saw a lot of tags with inline styling in old output
if the version of dreamweaver that you have makes code that works
stay with it
its likely html4, 4 was the standard for a very lonng time incomputer years

For most things you may want to accomplish, download a freeware source script designed to do it, examine it to findhow they achieved their result, then recode it tighter
anything that doesnt work, there are gurus available for every situation, just ask and one of them will be able to show
Even Skank, provides a useful resource, such a perfect example of what not to do.

almostbob 866 Retired: passive income ROCKS

Ignorance is bliss
many have tried to reduce your blissfulness
refusal to learn replaces ignorance with stupidity
andyou can't fix stupid Thankyou Jeff Foxworthy and Ron White

almostbob 866 Retired: passive income ROCKS

what emhmk wrote
except set display:none; display hidden leaves whitespace where the element would be

<html><head><style type='text/css'>
@media print {  .dontprint { display:none; } }
@media screen { .dontshow { display:none; } }
</style></head><body>
<p class='dontprint'>this paragraph only displays onscreen</p>
<p class='dontshow'> this paragraph provides alternate text in the printed version but does not show onscreen</p>
<p> this paragraph both displays and prints, the form would go inside here</p>
<p class='dontprint'>this paragraph only displays onscreen</p>
<p class='dontshow'> this paragraph provides alternate text in the printed version but does not show onscreen</p>
</body></html>
almostbob 866 Retired: passive income ROCKS

Skank
on your own screen that text may be readable
on a screen one generation newer than your the text is small, more pixels per inch, fixed pixel size gets smaller
on a screen two generations newer than yours the text is tiny
next gen smaller still
best practice for screen layout uses em or %, not px,
em & % are scalar dimensions that adjust to user settings, device capability, window and screen size.
ensuring the page looks the same and functions properly on all resolutions and device capabilities.
It is relatively simple to produce a page that works on all devices from handheld to huge wallscreens

Most properly coded sites work in cellphones pda laptop palm etc
this is a palm touch sitting in an airport cafe 3inch screen, DaniWeb functions because CSGal did produce a functioning layout
(menus push offscreen right till you need them, posts occupy screen left)

Your site,
this is not intended as a personal attack,
a criticism of the code,
is ineffective.
800px wide central column,
on a 400px monitor or
on a 2400px monitor, looks ridiculous wastes real estate
in %, example coded at 80% on your 1024*768 home pc
would remain
80% of 2400px
80% of 400px palm
80% of 800px 'grannies desktop'
with 10% each side of margin/background
the page would look like it belongs …

almostbob 866 Retired: passive income ROCKS

Kaycy,
(this is a slack lazy answer, but it works)
sometimes the easiest way to learn html is to install an IDE
(integrated development environment)
set the ide to whatever language you want to learn, and just begin typing
many have code completion functions so they
ensure the closing tags are always put in, if you forget
ensure that block elements arent inside inline elements (inline inside block is ok)
hint at the next element when what you are doing has required code
highlight syntax errors,
and have good helpscreens
you can swap from code view to a view of the page result

PureGeek:- code in a text editor because they can see output, but that takes practice
have no idea what is a good basic IDE to use, I use notepad++
(not at PureGeek level, notepad++ has code completion and hinting but doesnt have a visual display)
run code you end up with through the W3c validators, and follow any suggestions to correct errors (the site does not have to be live)

something I put in the bottom of every

Valid code does not ensure the site will work ...
Invalid code ensures the site will not work ...
.. in all browser OS combinations

almostbob 866 Retired: passive income ROCKS

Skank, test results for your siteFixed size text is invisible in Hi_Def monitors. 10px is, for current generation monitors 0.08inch hi, next gen will be smaller, this laptop has 120px/inch
fixed width body pushes content offscreen in part windows or small devices, looks ridiculous in widescreen

these standard tests may assist you

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.socialemo.com/&charset=%28detect+automatically%29&doctype=Inline&group=0 html check, failed
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.socialemo.com/&profile=css21&usermedium=all&warning=1&lang=en CSS check, failed
http://demo.opera-mini.net/demo.html?www.socialemo.com/ handheld, displayed, not readable
http://browsershots.org/http://www.socialemo.com/ other browsers, failed, blankscreens out the wazoo

serious code errors in the w3c validator sites will produce blankscreens in browsershotsValid code does not ensure the site will work ...
Invalid code ensures the site will not work ..... in all browser OS combinations

not all layouts work in handheld devices
strictly code based, That is what you call 'best' ?

almostbob 866 Retired: passive income ROCKS

Kraft Dinner and ceasar salad

almostbob 866 Retired: passive income ROCKS

as long as (despite other opinions) the code is valid and consistent, html 2 3 4, are still perfectly understood by browsers
html4 is more capable than html2, html5 neagates the need for flash(supposedly), if the features arent required, the change is unneccessary
these standard compliant test beds may assist you

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.yoursite.com&charset=%28detect+automatically%29&doctype=Inline&group=0 html check
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.yoursite.com&profile=css21&usermedium=all&warning=1&lang=en CSS check
to ensure that the code is compliant, invalid code may cause browser/OS combinations to fail to display
http://www.browsershots.org/ will show any browser that your code does not work in.

almostbob 866 Retired: passive income ROCKS

reread the specs on html4 html5 xhtml
DOCTYPE is retained as a "mostly useless, but required" header only to trigger "standards mode" in common browsers"
its the keyword "required" that has the effect, you may not use dtd, thats your choice, but run your site through browsershots, to see the effect that choice has on users other than yourself, users with other browsers, to see if the site even displays,
without a dtd the site fails any validation
serious code errors may cause sites to fail to display in some browser/OS combinations

almostbob 866 Retired: passive income ROCKS

dtd doctype declaration the first line of an html that works crossbrowser <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> without a dtd many of the functions available in html > 2 (for html4) will not be available even if coded into the site
by the time html5 is finished, they might as well call it html6

Apple:: 30 years on;; still insignificant

almostbob 866 Retired: passive income ROCKS

html5 is aidea and will probably not be released, xhtml supersedes it in ability
even if it is releaseed, as long as the dtd of your pages is properly declared, the browser will display them properly

almostbob 866 Retired: passive income ROCKS

solution 1

<script type="text/javascript">
function wait() { document.getElementById("errorBox").style.visibility="hidden" };
</script>
</head>
<body onload='wait();'>

solution 2

<div id="errorBox" style='visibility:hidden;'>

solution3

#errorBox { visibility: hidden; }
almostbob 866 Retired: passive income ROCKS

the first clientside is window.close();
nothing will display in a closed window
try the same code with the javascript to close the window AFTER the information is displayed

almostbob 866 Retired: passive income ROCKS

gday Ezzaral,
It usually don't take long those times when I have,
exceeded or misused
can't help it, had red meat, (daylight be howling if the moon were up) sitting in airports SUX