almostbob 866 Retired: passive income ROCKS

The other thread used javascript,
php serverside
javascript clientside
nothing in php occurs after the page source is downloaded to the browser
to change the page source after loading is done in javascript
an image randomizer can be done in php and that random image name written into the javascript, so the image is different each page refresh
but anything after the page is served is javascript
Is this what you want, an php image randomizer?

almostbob 866 Retired: passive income ROCKS

I have done some testing and the SRC I inserted for the font is just a standard .ttf (Truetype Font) file (If you open it directly in your browser it downloads as a file called font.ttf)

what you download and get in your browser has nothing to do with what the server is able to do with it, and whther the file is called as a download url or as a linked css file may effect the processing applied by the server.
thats what php perl asp python are for.

samarudge commented: Helpful as always +3
almostbob 866 Retired: passive income ROCKS

swf is not java
swf is not javascript
java is not javascript

swf is ShockWave Flash the best place for basic scripts is adobe.com, the maker

this Q&D page http://www.w3schools.com/flash/flash_inhtml.asp will get you running, the .swf is already made, start at number 4

flash does not work if the plugin is not installed on the user browser, do not depend on the .swf for anything important

almostbob 866 Retired: passive income ROCKS

just the format of the code to put in the cookie too leave off the www and make the cookie refer to .mysite. let me open up my notes, probably the next link is the php one

edit: yep, subdomain cookies at php.net http://php.net/manual/en/function.setcookie.php

domain
The domain that the cookie is available. To make the cookie available on all subdomains of example.com then you'd set it to '.example.com'. The . is not required but makes it compatible with more browsers. Setting it to www.example.com will make the cookie only available in the www subdomain. Refer to tail matching in the » spec for details

in 'parameters' at the top of the page

peter_budo commented: Compasation for previous mistake +14
almostbob 866 Retired: passive income ROCKS

subdomain persistence cookes: try: http://www.15seconds.com/issue/971108.htm

almostbob 866 Retired: passive income ROCKS

<form action='/login.php' method='post'> relative link on your site work?

almostbob 866 Retired: passive income ROCKS

current best practice for layout dimensioning is ems and %, relative dimensions that auto adjust to window size, screen resolution, and user preference enabling a single site layout to work in everything from a handheld device to a widescreen monitor, and permitting disabilty friendly display. All fixed sizing is outdated

almostbob 866 Retired: passive income ROCKS

further to pwinfrey's reply, answer to the expected follow up question
Yes the link http://www.mysite.com/mypage.html#top works as expected it moves the page to the anchor defined by name='top' when the page is opened

tokenjoker187 commented: Read my question fully and gave extra input on the problem. Thank you! +1
almostbob 866 Retired: passive income ROCKS

'found' (stole) the property of another author and disseminated it in contravention of the terms of use and copyrightsteal a car and offer it to others to drive, does not make a 'nice guy', it makes a thief
unable to understand terms of use, makes an igonorant thief, but still a thiefMany posters on this board are authors of commercial scripts, should they be pleased at some moron deciding to release their work to the public against their wishes, thats what COPYRIGHT NOTICES are.
Should Csgal, & mods & those who put in time effort, endure any fiscal consequences of some moron's actions on the board

on a scale of 0-10
ya still personify zero

almostbob 866 Retired: passive income ROCKS

style the buttons
you can do anything in css

input.print {background:src(bla bla bla)}
<input class='print'>

has the appropriate image, you dont really need the image you can style the button itself, images take size, extra http calls, time

Lusiphur commented: That's why you make the big bucks... oh wait, we don't get paid for this do we? :P +1
diafol commented: nice AB +6
almostbob 866 Retired: passive income ROCKS
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

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

investigate the html <label> tag, will make your input forms more user friendly, by providing the stardard clickable-text that activates the radio button

<script type='text/javascript'>
function show(sec) {
document.getElementById('sec0').style.display='none';
document.getElementById('sec1').style.display='none';
document.getElementById('sec2').style.display='none';
document.getElementById('sec3').style.display='none';
document.getElementById(sec).style.display='block';
} </script>
Section:<br>
|<input type='radio' name='section' id='section1' value='section1' onclick="show('sec1');"><label for='section1'> Section 1</label>|
|<input type='radio' name='section' id='section2' value='section2' onclick="show('sec2');"><label for='section2'> Section 2</label>|
|<input type='radio' name='section' id='section3' value='section3' onclick="show('sec3');"><label for='section3'> Section 3</label>|
<div id='sec0'>| Reason |</div>
<div id='sec1' style='display:none;'>
|<input type='radio' name='reason' value='reason1' id='reason1'>
<label for='reason1'>reason 1</label>|
|<input type='radio' name='reason' value='reason2' id='reason2'>
<label for='reason2'>reason 2</label>|
|<input type='radio' name='reason' value='reason3' id='reason3'><label for='reason3'> reason 3</label>|
</div>
<div id='sec2' style='display:none;'>
|<input type='radio' name='reason' value='reason4' id='reason4'><label for='reason4'>reason 4</label>|
|<input type='radio' name='reason' value='reason5' id='reason5'><label for='reason5'>reason 5</label>|
</div>
<div id='sec3' style='display:none;'>
|<input type='radio' name='reason' value='reason6' id='reason6'><label for='reason6'>reason 6</label>|
|<input type='radio' name='reason' value='reason7' id='reason7'><label for='reason7'>reason 7</label>|
|<input type='radio' name='reason' value='reason999' id='reason999'><label for='reason999'>reason 999</label>|
</div>

all the radio buttons can have the same name, as only groups of them are shown
the IDs give the <label> tag something to anchor to

ShArKss commented: Solved the problem! Love this guy! +0
almostbob 866 Retired: passive income ROCKS

that means the .js files on your server are not stored on your localhost development system, severely messes up if the two are not identical
If you have ftp access you should download all the server html css js files to the development system, images etc dont matter,
if you dont have the localhost complete, every alteration will have to be individually uploaded to the host to be tested
that is a pain, and total snafu can result
IF the localhost is complete development is a snap, you can make any changes you like without killing the server

javascript menus dont work where javascript is disabled for security (large %age getting larger everyday)
css menus work everywhere

almostbob 866 Retired: passive income ROCKS

user registration validation
image/file upload
image validation ( coyright obscenity ) <= this part probably cant be automated
display uploads, appropriately saled
;;seems a bit like photobucket

look on google or in phpscripts.com or other script repository for a photobucket clone script
that will give you the basic method, generally the scripts you source are pretty badly written, they work, not work well
once you have the concept tighten it, recode for efficiency security and to get the scaling into the homepage

Designer_101 commented: Very good comment! +0
almostbob 866 Retired: passive income ROCKS

still the op hasnt noticed, THERE IS NO EQUAL SIGN IN THE NAME OF THE INPUTS THAT ARENT BEING POSTED
THIS IS A HTML SCREWUP NOT A PHP SCREWUP

yours WRONG <input type="text" name"CardHolderName" correct <input type='text' name='CardHolderName' ??

almostbob 866 Retired: passive income ROCKS

you can use a motorcyle to deliver a houseload of bricks, two or three at a time,
a truck delivers the bricks, they arrive less damaged, faster, and use less fuel to do it.

can <> should
possible <> best
<table>s and <div>s have their strengths, it is difficult to have sortable divs, POC to have sortable tables

almostbob 866 Retired: passive income ROCKS

adding to urtrivedi's answer

if you want the sort to be alterable on the page, output the sorted query data,
and
there are many javascripts that perform live table sorts onclick of the header field, http://javascript.internet.com/forms/sort-data-table.html is one

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

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

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

you are the spammer here and did not use your brain to think before talk. see what i saying the whole sentence before use your dumb brain ok

also master_99 did not say anything about my post, is you the one agree but not related to any of my post, wonder how you survive with your dumb brain

I'm not mature, just old,
I dont care how many a-holes get offended,azetect: five posts zero threads solved, no attaboys
Ardav 1800: posts 237 threads solved, sh_tloads of attaboyson a value scale az, 0-10, you personify zero
STFU
or as a polite person may write,
some solutions under your belt before you get aggressive

diafol commented: Best put down I've read on DW. Still chortling now. +5
almostbob 866 Retired: passive income ROCKS

look for a section in the google script code &hl=** where ** is the two letter abbreviation for the language and change it to &hl=en the original page had tulips windmills and sabots
html entities... <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;hl=nl&amp;key=" type="text/javascript"></script> becomes <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;hl=en&amp;key=" type="text/javascript"></script>

almostbob 866 Retired: passive income ROCKS

AAT is the largest land area in the world so not nice to forget it

<?php
$aussie_states = array(
'AAT' => 'Australian Antarctic Territory',
'ACT' => 'Australian Capital Territory',
'JBT' => 'Jervis Bay Territory',
'NSW' => 'New South Wales',
'NT' => 'Northern Territory',
'QLD' => 'Queensland',
'SA' => 'South Australia',
'TAS' => 'Tasmania',
'VIC' => 'Victoria',
'WA' => 'Western Australia'
);
?>
almostbob 866 Retired: passive income ROCKS

a:visited { color: 333;} vs a:visited { color:#333;} There are four ways to declare color in css

  1. As a standard color name P {color: green}
  2. As a hexadecimal value P {color: #333333} // note the hash
  3. As an RGB percentage P {color: rgb(70%, 0%, 30%)}
  4. As a decimal value from 0 to 255 P {color: rgb(170, 0, 100)}

none of them are just numeric, in lines 11-22

ref:http://www.devx.com/projectcool/Article/19851

tasteypaste commented: Very concise and helpful. +0
almostbob 866 Retired: passive income ROCKS
<html><head>
<script type='text/javascript'>
<!--
function imgclick(image) { 
document.getElementById('bigimg').src="imagelibrary/"+image+'big.jpg';
document.getElementById('linkimg').href="/root/path/"+image+".html"; 
}
-->
</script>
</head><body>
<img src="imagelibrary/dazzlethumb.jpg" onclick="imgclick('dazzle');" border="5"  />
<img src="imagelibrary/gunshotthumb.jpg" onclick="imgclick('gunshot');" border="5" />
<img src="imagelibrary/searoomthumb.jpg" onclick="imgclick('searoom');" border="5" />
<img src="imagelibrary/smokethumb.jpg" onclick="imgclick('smoke');" border="5" />
<br>
<a href='#' id='linkimg'><img src="imagelibrary/dazzlebig.jpg" id="bigimg" width="320" border="0" /></a>
</body>
<script type="text/javascript">
<!--
image1 = new Image();
image1.src = "imagelibrary/dazzlebig.jpg";
image2 = new Image();
image2.src = "imagelibrary/gunshotbig.jpg";
image3 = new Image();
image3.src = "imagelibrary/searoombig.jpg";
image4 = new Image();
image4.src = "imagelibrary/smokebig.jpg";
-->
</script>
</html>

the initial javsacript makes the requested links and image changes
the second javascript between </body> and </html> preloads the larger images to tif after the page is loaded and functioning without displaying any, gives an apparent speed increase over images in a div with display:none, load time is not changed, but the page becomes functional before all the images are loaded

the link href makes the assumption that /root/path will be repaced by the right path and that the filename convention established with thumb-big has been continued to the html filename

almostbob 866 Retired: passive income ROCKS

its a SQueezeBox(css/javascript) menu, very similar effects can be done in straight css,

This is a poor menu implementation, squeezebox supports dynamic sizing by default and they should have used it, if you reduce the window to a part screen, the entire active part of the menu, pushes offscreen right and is invisible.
on a scale of 0-10 this implementation is maybe 2
potential to do much more in your implementation of the same freeware
just about any 'vertical drop down css menu's could be used to make this menu,
without flash or java, the flash on the site is just the scroller down the side

almostbob 866 Retired: passive income ROCKS

of course its a null link
any secure work is done serverside and the unlogged user does not even get a link
of course your confirm link screws up, as soon as there is any response to the alert the return value is 'true' and the href is processed
it is not strictly necessary to have a href at all for the script processing to work
javascript, would likely store the hash of the password in the file, and hash the input, compare the hashes and act appropriately
there is no security in anything done client side

almostbob 866 Retired: passive income ROCKS

Its a paid service, you require access to a mobile phone provider's system, which you pay for, and they provide a script to access
all the 'free' services are merely an advertiser's choice of method to keep you on their pages long enough to see their ads
contact a local mobile provider to arrange service

almostbob 866 Retired: passive income ROCKS

the links is Wrong, the href is invalid

<a href="#" onclick="password()">Password</a>

and you arent really going to have a password in clear in the file are you?

almostbob 866 Retired: passive income ROCKS

no
there are many, 'copy proof' ideas, none actually work, they may make it more difficult, but not very
the image is downloaded to tif to display, the user can copy it at will
serve images copyright watermarked and at a screen-quality resolution so that it is not worthwhile to keep

almostbob 866 Retired: passive income ROCKS

I assume it is 2 files.

I do too, but the file is simply an image generatior and should be using the session established in the calling file, (shouldnt it??)

almostbob 866 Retired: passive income ROCKS

Expert
combination of Ex, has been, was, past tense
and
spurt, a drip under pressure
expert : a hasbeen drip under pressure

almostbob 866 Retired: passive income ROCKS

You need the extension in the table or file handling wont work, you dont need it displayed in the download link

<?php   foreach($files_array as $key=>$val)  {            echo '<tr><td><a href="dlc_download.php?file='.urlencode($val).'">'.substr($val, 0, strlen($val -4)).'</a></td> 
<td><span class="download-count">'.(int)$file_downloads[$val].'</span></td>;
</tr>'; }  ?>
Cap'nKirk commented: Excellent job, thank you! +1
almostbob 866 Retired: passive income ROCKS

No one messes with this little black duck, -- Daffy

almostbob 866 Retired: passive income ROCKS
$SWEAR = array('a' => '@', 's' => '$');
almostbob 866 Retired: passive income ROCKS

on login update lastlogin with sql now() the timestamp of now

delete low_priority from table where last_login < (now() - 2592000 ) order by last_login limit 100

2592000seconds=30 days
limit 100 to make sure no timeout and because a limit is usefull where there may be 10000000 members
low priority to ensure the login page the code is embedded in presents without delay

almostbob 866 Retired: passive income ROCKS

With apologies to the author (whomsoever they may be), the email that included this article did not attribute it, and did not preserve the original, the emailer is not the author, merely forwarded it to the one person in their region identified as the Australian, this is a very small town.
The poster is not the author.
No copyright is known.
No copyright is claimed.

Australia
Australia is a very confusing place, taking up a large amount of the bottom half of the planet.
It is recognisable from orbit because of many unusual features, including what at first looks like an enormous bite taken out of its southern edge; a wall of sheer cliffs which plunge deep into the girting sea. Geologists assure us that this is simply an accident of geomorphology and plate tectonics, but they still call it the "Great Australian Bight" proving that not only are they covering up a more frightening theory, but they can't spell either.

The first of the confusing things about Australia is the status of the place. Where other land masses and sovereign lands are classified as either continent, island, or country, Australia is considered all three. Typically, it is unique in this.

The second confusing thing about Australia are the animals. They can be divided into three categories: Poisonous, Odd, and Sheep. It is true that of the 10 most poisonous arachnids on the planet, Australia has 9 of them. Actually, it would …

Nick Evan commented: Great story! +0
darkagn commented: Brilliant post, made my day :) +0
almostbob 866 Retired: passive income ROCKS

with no dtd you are limited to html2
self closed elements (end in /> ) are xhtml ONLY
the declaration of your css wil lbe ignored

if you make the firstline of the html file a dtd for html 4 (strict or transitional) or xhtml (strict or transitional) you will be able to properly use external css files <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> sample html4 Transitional DTD
course notes are never complete

daviddoria commented: Thanks almostbob +3
almostbob 866 Retired: passive income ROCKS

There are parts of the spice girls I remember vividly

but a backstreet boy was and is, as a chocolate starfish, and a butthole surfer,
something completely other than a musician

Salem commented: music or anatomy? ;) +0
almostbob 866 Retired: passive income ROCKS

what did you try
how did you try
post the code you are using so nobody, with a possible solution, has to do anything twice

almostbob 866 Retired: passive income ROCKS

all of the questions you have asked are answered in the MySQL user guide sections
in the appropriate server side language for the site host,

at mysql reference sections http://dev.mysql.com/doc/ for the version to be used
from theses sites you will get absolutely accurate answers, code samples and instructions
cmon back and post a question if the code you develop has a specific bug

perhaps start with a CMS, prewritten to accomplish what you look for

henpecked1 commented: almostbob's guidance was accurate and gave me exactly what I needed. +3
almostbob 866 Retired: passive income ROCKS

but we have a thread so we can remember what we are eating, we aint old

almostbob 866 Retired: passive income ROCKS

When you remember that the records are 78rpm

almostbob 866 Retired: passive income ROCKS

IF you remember Pink Floyd, you werent really there man ..

almostbob 866 Retired: passive income ROCKS
echo "<tr><td><a href='$Link[$j]' target='_blank'> <img src='/images/news3.gif' /> <font color='#FFFFFF' size='3'>$NewsPapers[$j]</font></a></td>";

the html is screwed up,
a mix of xhtml and html,
attributes are required to be quoted,
dtd is required
some browsers will fail to render on this type of error

wrape code in [code=language] [/code] tages where language is html php asp etc. to make viewing simpler

like the instructions on the top of the page tell you

karthik_ppts commented: useful +5
almostbob 866 Retired: passive income ROCKS

dont do it, there are too many annoying sites

almostbob 866 Retired: passive income ROCKS

THe Hosts file part of every windows since 3.11
part of every MacOS
part of every linux os
part of every freeBSD os

and very seldom used,,,, DOH

a text file list of
127.0.0.1 uri
one item per line

no ads, no google adware, no trackers, no problems
vastly improved page load times
regularly updated with new threats and malware,, not aware that DaniWeb was ad supported

http://mvps.org/winhelp2002/hosts.htm