almostbob 866 Retired: passive income ROCKS

wrap it in form tags <form></form> cant be more specific without more information
post the code you are using, then its easy to point at 'there'

almostbob 866 Retired: passive income ROCKS

figjam here

(f__ I'm good, just ask me)

almostbob 866 Retired: passive income ROCKS

They wouldnt lie about that, (ability to run local) too easy to check, would solve all the problems that could possibly imagine, with a live cd/dvd you can upload the html files to a server from the dvd when needed or run locally

almostbob 866 Retired: passive income ROCKS

why an external file
could you use unload to change the visibility of a layer in the page's css without the extra time needed to download the file

almostbob 866 Retired: passive income ROCKS

not sure about xamp's protocols and parameters, that would have to be looked up in the manual for xamp, or whatever runtime program is found that can display
but for many programs, the program can be called with a parameter of a filename that opens the file
This link to nusphere.com is a product I have used before

almostbob 866 Retired: passive income ROCKS

you actually want your site blacklisted
you want to open a window to override user actions
Not a particularly good idea

almostbob 866 Retired: passive income ROCKS

most includes require server processing, different to what is available on a browser,
if you burn the thumbdrive version (noinstall portable or a bunch of other names) of the ide that the development is done in onto the dvd as well, no problems, the ide will support the incl;udes

almostbob 866 Retired: passive income ROCKS

Yes, that is the foundation behind many websites
php asp shtml all have the ability to do server includes, all you need to do is find which of the above your server supports, and you can include the menu with a single statement, and it doesnt need to be a full html file, it just needs the menu, all the headers footers etc are predifined in the file doing the include, in php (files end with .php)it is <?php include('menufilename'); ?> at the point the menu is to sit
it is hugely easier than editing a multitude of separate menus

I have over 1600 pages on my site, but it really is 4 include files and a database, none of the viewable pages actually exist until you view them

almostbob 866 Retired: passive income ROCKS
javascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI= document.images; DIL=DI.length; function A(){for(i=0; i<DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=Math.sin(R*x1+i*x2+x3)*x4+x5; DIS.top=Math.cos(R*y1+i*y2+y3)*y4+y5}R++}setInterval('A()',5 ); void(0)

makes dancing images

almostbob 866 Retired: passive income ROCKS

Please wrap code in [code]

[/code] tags code highlighting makes simple errors, obvious errors

<?php 
$adminuser = $_POST['adminuser'];
$adminpass=$_POST['adminpass'];
if((!$adminuser=="") or (!$adminpass=="")){
echo "Please enter Username and Password";
}
elseif((!$adminuser=="admin") or (!$adminpass=="manoj")){
echo "Invalid Username and Password";
}
else{ "good"; } ?>

try

<?php 
$adminuser = $_POST['adminuser'];
$adminpass = $_POST['adminpass'];
if((!$adminuser) or (!$adminpass)){ echo "Please enter Username and Password"; }
elseif(($adminuser=="admin") and ($adminpass=="manoj")){ echo "good"; }
else { echo "Invalid Username and/or Password";  }  ?>
almostbob 866 Retired: passive income ROCKS

is mod_rewrite available on the server?

almostbob 866 Retired: passive income ROCKS


Pre IE6 is useless, but from IE6 most things work. If you avoid using those which don't work, there is no need to use a separate style sheet.

I have never written (or needed to write) a separate stylesheet for any browser.

How would you know, you arent the user

that wasnt intended to be inflammatory, you dont know what the end user is.
Death to the King

almostbob 866 Retired: passive income ROCKS

gues you all have the same homework assignment
http://www.daniweb.com/forums/thread257925.html

almostbob 866 Retired: passive income ROCKS

The attached image is a screenshot of my sites webstats for January 2010
shows why, if its readable after being mutilated by the display script, webmasters must make sites readable in IE as well as standards complient browsers
top left table cell
IE has 76% of market share,
MS could probably take a hint from google's playbook and say that IE is the standard **edit** I'm surprised MS havent

geeks programmers tech-savvy etc ( us ) may use 'alternate browsers' I run 5 including ie
but everybody else uses pc as they got it out of the dell(tm) shipping box

at least Windows95 and IE4 hasnt hit my site since December

almostbob 866 Retired: passive income ROCKS

op has searched for a literal 1 (number) not for a true boolean

almostbob 866 Retired: passive income ROCKS
<?php if($login_successful == "1") { echo "<a href='http://www.icselect.com/login.php?logout=1'> Logout</a>"; }
else { echo "<a href='http://www.icselect.com/login.php'> Login</a>"; } ?>

no quotes around variable name, quotes indicate quoted text.
xxxxxbla bla bla <> 1
text is never equal to one

almostbob 866 Retired: passive income ROCKS

I emailed the contact us link and asked them
file extensions are a clue

almostbob 866 Retired: passive income ROCKS

**edit** before the mods get to it, please wrap code in [code]

[/code] tags, makes it easier to follow **

Why in javascript, your problem I prefer serverside

compatible mozilla, many browser user_agents report compatibilities
the browser agents are different, you just have to test for unique items, the word mozilla is not unique

probably not the answer you wanted, but at least its accruate, the mozilla test is firefox

Application Name:
Microsoft Internet Explorer

Application Version:
4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Avant Browser; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

User Agent:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Avant Browser; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Platform:
Win32

Application Name:
Microsoft Internet Explorer

Application Version:
4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Avant Browser; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

User Agent:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Avant Browser; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

Platform:
Win32

Application Name:
Microsoft Internet Explorer

Application Version:
4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; Avant Browser; .NET CLR 2.0.50727; .NET CLR …

almostbob 866 Retired: passive income ROCKS

coldfusion

almostbob 866 Retired: passive income ROCKS

cant fix it if you dont show it
show the code you are using

almostbob 866 Retired: passive income ROCKS

inline styles are outdated a little, an external stylesheet allows the same style to be applied to every page without so many repeated definitions,.
<body style= "background-image:url('wall.jpeg'); background-repeat:no-repeat; background-position:center;">

almostbob 866 Retired: passive income ROCKS

BACON eggs tea
and I went to the republicofbacon.com and won a week's worth of bacon, minor prize in the contest week month year 10year
BACON

almostbob 866 Retired: passive income ROCKS

UTF-8 encoding
html charset
the GBP pound sign gets 2 bytes in utf8 utf16 its not one of the lower 127 ascii codes that gets directly translated
the page that reads the stored data file needs to be charset UTF-8,
logically aware of the answer, my phone does not have my stored links on it so I cant post the relevant link
(anti boredom browsing)

almostbob 866 Retired: passive income ROCKS

show the code you are using

almostbob 866 Retired: passive income ROCKS

As an aside from the code question,
notepad and a browser is enough, but notepad is text only
notepad replacements(code highlighting editors) like notepad2 notepad++ codepad,
or an IDE with code highlighting
work like notepad, but mark up the code produced like the [code]

[/code] tags above, it makes 'headslap errors' like a mising '/}) very easy to find, and helps make coding simpler
an ide allows you to code and view changes in the same software

The <form> code is unneccessary for this example, but is used where the form is going to be submitted somewhere.
corrected doctypes for valid xhtml

<!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">
<head>
<title>edited javascript example</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
<script type="text/javascript">
function calculateArea() { area = document.getElementById("txtWidth").value * document.getElementById("txtHeight").value
 return (area); }
</script></head>
<body><p>enter the width and height:<br/>
width:<input type="text" name="txtWidth" id="txtWidth" size='5' /><br/>
height:<input type="text" name="txtHeight" id="txtHeight" size='5' /><br/>
<input type="button" value="calculate area" onclick="alert('area is\n'+ calculateArea())"/></p>
</body></html>
almostbob 866 Retired: passive income ROCKS
OmniX commented: Nice Link! Thanks! +3
almostbob 866 Retired: passive income ROCKS

show the existing css,

almostbob 866 Retired: passive income ROCKS

UTF-8 is the first time I have seen 'new' stuff that didnt actively kill 'old' stuff
its a good idea, it works

it must have been an accident

almostbob 866 Retired: passive income ROCKS

when they dont show up in the target frame, are they

  • links to other sites or yours other sites likely have a framebreaker in their code to prevent using their page in framesetssolution is permission from the site owner to display their pages, framebreak can be customized to allow the page to display framed in certain sites, or,
    write your own similar content
  • opening fullscreeen or opening in the menu frame, if opening fullscreen, there is again likely a framebreak, if opening in the menu frame there is likely a texterror in 'name'
almostbob 866 Retired: passive income ROCKS

UTF-8 etc have multibyte character encoding
characters above the 128 us ascii set get 2 bytes, 3 bytes (up to 6 bytes) to represent them
makes it backwards compatible with non-utf8 applications, which display garbage, but ascii garbage and dont crash
strlen() appears to be ascii byte counting
here is an explanation in wikipedia
that result is proper, displayed value is XXX characters, for each character that is 2byte encoded you get XXX+1

diafol commented: Thanks - spot on as usual +5
almostbob 866 Retired: passive income ROCKS
almostbob 866 Retired: passive income ROCKS

ignore asp

a personal perspective

almostbob 866 Retired: passive income ROCKS

you went from no doctype, to xhtml
no doctype = html 2, no support for anything, lucky if it works
xhtml, support for everything, very strict declarations and positioning required
noted several times in several dozens of threads for heaps of questions xhtml requires all elements to be closed, either as <element></element> or <element /> for singletons
as well as just shoving 'something' in the noted errors it may be a reasonable thing to read up on what effect adding the 'something' may have.
As well as the w3c validators use W3Schools the companion instruction site,
topics matchup very well with the error messages generated by the validators, and you will save yourself the same set of hassles with further developments

-aside- Congrats,
try question learn succeed repeat
is much cooler than [whine]"I dunno what to do somebody else do it for me".[/whine]

when posting code wrap it in

[code]

[/code] or [code=css] [/code] or [code=php] [/code] or [code=javascript] [/code] etc tags, gives the highlight to keywords and structures, and makes it easier for those reviewing, and on occassion has been known to jump out the screen and scream at the OP look at me, Im misspelled, making the fix very apparent <--attempt humor, lame, had to shoot it

almostbob 866 Retired: passive income ROCKS

my version of the javascript

<script type='text/javascript'>
function boxTicker(formName, boxId){ 
var box = eval("document.getElementById(boxId)");
if (box.checked == false){ box.checked = true;
alert("Ticked!");
}
}</script>

getelementbyid is a singleton (there can only be a single element with 'id', no parent dom elements but document are required, you could function boxTicker(boxId){ } in this method onclick works(dunno why), onchange would be better, else you may submit a potentially blank form

almostbob 866 Retired: passive income ROCKS

I would hate to see a "W3C complain" website.

I think the OP would have typed complian, (meant to be compliant) but the spell checker 'fixed it'

:P
Oh I hope they meant compliant, another 'complaint' site aaaaaarrrrrrrrrrrggggggh

almostbob 866 Retired: passive income ROCKS

Textboxes dont respond well to onclick
onchange onfocus onblur are the methods more commonly used
I would try the same <input> with the javascript attached to 'onfocus'

almostbob 866 Retired: passive income ROCKS

Sorry, rephrase
dlannetts correct answer may be expanded to, 'this is where it mostly is, but look everywhere'

pebkac errors

almostbob 866 Retired: passive income ROCKS

Oh i haven't noticed that.! i only have '}'...sorry,.

why people get POed,
get a code highlighting editor, and debug your own stuff before you ask
'I tried this and found that and dunno what to do next'
will get more help than
'I know its right'
when everybody else can see it isnt

almostbob 866 Retired: passive income ROCKS

From the above, you want the script writing to an existing page without refreshing the page, thats AJAX, the page uses javascript to poll at interval a server php script and writes returned html data into the existing <div><textarea> etc
the best place for this q is probably the adjacent Javascript/Dhtml/AJAX forum, where the mavens could likely write it in their sleep,
I cheat, I used a prewritten chat http://www.phpfreechat.net

almostbob 866 Retired: passive income ROCKS

Any effort by the op would discover mismatched braces
Screwem, do their own damn homework

almostbob 866 Retired: passive income ROCKS

more information required,
is the chat reloading the page, simple php,
or writing to an existing page without refreshing the page, AJAX
what have you tried, what code are you using

almostbob 866 Retired: passive income ROCKS

more information required
it is easy, <element value='<php echo $VALUE; ?>' > but the exact format depends on where you are getting the values, and what you want them to do,

almostbob 866 Retired: passive income ROCKS

That site is garbage
tables, java, flash, fixed sizes -content pushes off screen in small browser windows, too slow to load, invalid code.

There is nothing on that site that can't be done better, faster, smaller, browser indepentdent, in css
the google search would be 'vertical drop down css menu download'

I like Dynamic Drive menus

almostbob 866 Retired: passive income ROCKS

" have a load of PHP pages that generate XML feeds that need to run hourly for my site to function " = 1 cron job

<?php include('job1.php');
include('job2.php');
include('job3.php');
include('job4.php');
include('job5.php');
include('job6.php');
include('job7.php'); 
/* jeopardy music */ 
include('job9999.php'); ?>
almostbob 866 Retired: passive income ROCKS

its a function of keyboard layout
not everyone uses EN-us keyboards
the keyboard mapping for other languages, even other subsets of EN, changes the location of keys, and may move non-standard (in the active language character set) characters to 'third' function positions
dlannetts answer may be expanded to, 'this is where it mostly is, but look everywhere'

almostbob 866 Retired: passive income ROCKS

browser actions and published standards are out of sync again
the
you are probably right, but a form page would not redisplay the page on submit, it would either display a totally different page without the form, or resub the form is a valid action

<?if isset($_submit['something']) {echo 'completed form page html'} else { echo 'form page html' /* or redirect */ }?>
almostbob 866 Retired: passive income ROCKS

chilli refried beans crackers sour cream and hotsauce

almostbob 866 Retired: passive income ROCKS

thats why the op is asking
he knows oldschool, and wants to learn
it is easy to add server processing to html files in .htaccess, not a good idea, even the op doesnt suggest its a good idea, but it is easy and may be an good stage on the trip from static to dynamic pages, for the op coz it builds on what he already knows
without a directive in .htaccess php does not examine .htm .html files for php code

1 block at a time

Of course I could be totally wrong and the OP just wants to do it out of sheer bloody-mindedness, :D(1 below)
but I prefer not


(1) Today is bulk snowing, and I get to be inside for a half hour to eat and get warm. NOBODY can do anything to P_ me off

almostbob 866 Retired: passive income ROCKS

@AB - thanks - straightforward - cutting through the nonsense as usual. How about validation? Will lacking an action attribute cause failure?

no the default action is valid to xhtml and html5, it is only necessary to supply an action if the form is NOT posting to itself


As for js redirects: will not the client pick up the redirect as it is client-based (js), i.e. redirect after page has loaded. Whereas (*I think*) the php header() will redirect before page load on client and therefore hide its tracks. Thought WCAG had suggested that all redirects should be server-side. Maybe wrong here.

quite correct, the php given should have used a header redirect


What about page refresh? Won't sending the form to itself resend the form on refresh?

no 'post' destroys the data

Is all this 'hiding' necessary in the first place? $_SERVER could check the 'sender' and if it is not the form sending page - alert, alert, alert. I know it can't be trusted 100%.

$_SESSION variables could be used to store a string (e.g. salt + unixdatetime + another salt) which could be checked against a hidden field (hashed) in the form.

The receiving form handler page then checks the session variable for a value and then hashes it and then compares it to the hidden form field. If 'true' then form "must" have come from the true form page. Where 'false' bounce user back to form page with a message.

didnt suggest …

almostbob 866 Retired: passive income ROCKS

back in the day
there wasnt anything else,
so you learned