2,295 Posted Topics

Member Avatar for survesunny18186

Most find that speed is not the issue post is better for some purposes, get for others this discussion may help [url]http://stackoverflow.com/questions/1211881/why-get-method-is-faster-than-post[/url]

Member Avatar for mazeroth
0
374
Member Avatar for beershits

[code=php]<a href='<?php echo $_SERVER['PHP_SELF']; ?>?x=a.txt'> a </a> <a href='<?php echo $_SERVER['PHP_SELF']; ?>?x= b.txt'> b </a> <?php //hate short codes $xh = fopen($x, 'r'); $theData = fread($xh, filesize($x)); fclose($xh); echo '<h1>$x</h1>'; echo $theData; ?>[/code]

Member Avatar for almostbob
0
73
Member Avatar for justted

Iconize the images, and have javascript load the full images in the background after the page is loaded click the icon, the full sized image displays in a div strategically located on the page,

Member Avatar for almostbob
0
124
Member Avatar for TechExpressInc

If they are at the office presumably turnstone, are they on a company intranet, the ip reported may not be the external ip expected, it may be the intranet 192.168.*.*, or similar no external file ip redirect[code=php]<a href="<?php ( $_SERVER['REMOTE_ADDR']== '69.245.218.248' ) ? ( echo 'http://www.turnstone.org/employee2/index.html'; ) : ( echo …

Member Avatar for cwarn23
0
174
Member Avatar for Alexancho

We find that there are <onEvent> properties that may fail in <tr> between browsers, we put the <onEvent> handlers in the <td> instead, visual styling seems to work with every thing per cguan's advice, this link [url=http://www.browsershots.org]BroswerShots[/url] will let you check out your code in browsers (all of them) to …

Member Avatar for almostbob
0
63
Member Avatar for stockton

this is better[code=php]<!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"/> …

Member Avatar for ko ko
0
178
Member Avatar for hbmarar

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

Member Avatar for cwarn23
0
1K
Member Avatar for roryt

[code=html]<html> <head> <title>Text Effect</title> </head> <body> <input style='background:url("search.jpg")' type="text" name="txt" value="" onfocus='this.style.background="none";' onblur="if(this.value == '') { this.style.background="url('search.jpg')"; }" /> </body> </html>[/code] where search.jpg is an image of the word 'Search'

Member Avatar for ServletEst
0
468
Member Avatar for vegaseat

the code is unneccessarily complex <img src='image1.jpg' onmouseover='src="image2.jpg";' onmouseout='src="image1.jpg";'> the only javascript required is to load the second image in the background after the page is loaded and displayed, so there is no mouseover delay ...snip .. </body> <script language="javascript" type="text/javascript"> //<![CDATA[ <!-- image2 = new Image(); image2.src = "image2.jpg"; …

Member Avatar for almostbob
0
171
Member Avatar for Jeyush

popups are blocked on many systems better is login opens in a layer above the index page and redirect is automatic less likely to be affected by security softwares

Member Avatar for almostbob
0
109
Member Avatar for scorpx

[code=html]<tr onclick='open("http://www.google.com/","_blank");'> <td>google</td> <td>bla bla</td> <td>bla bla</td> </tr>[/code]

Member Avatar for almostbob
0
130
Member Avatar for veledrom

there arent 17 lines in this file, so is the cause in the included session handler at around line 16

Member Avatar for EvolutionFallen
0
73
Member Avatar for Designer_101

am using camstreams.com, some of the price in the pricey ones is for setup assistance, we didnt need it it was easy for audio its a matter of a cable from line out on the mix board to line in on the sound card, and choose a stream format we …

Member Avatar for almostbob
0
160
Member Avatar for cooterbrown

The added <select> has no part in the calculation, its values are all text, so the code where changing the text <select> chanes recalculates the form is not enough changing the text select item is supposed to change the price values in the size <select> there needs to be another …

Member Avatar for cooterbrown
0
110
Member Avatar for whiteberry

add to the above, miss-spelled includes case-sensitive servers where this.jpg may not be the same as this.JPG

Member Avatar for almostbob
0
132
Member Avatar for chavansoft

[QUOTE=chavansoft;957045]cwarn23, I tried it but still could not solve the problem. please I'm trying with all soughts of different function but could not fix it. Please help me. Thank you for the Reply Regards chavan[/QUOTE] perhaps post a little more of the code, the balls up could be the combination …

Member Avatar for cwarn23
0
120
Member Avatar for maddogmain

In an rss feed, the output of the php script generating the feed [U] is [/U] xml, rss is an xml format[code=xml]<?xml version="1.0" encoding="ISO-8859-1"?> <rss version="2.0"> <channel> <title>CBC | Top Stories News</title> <link>http://www.cbc.ca/news/?ref=rss</link> <description>FOR PERSONAL USE ONLY</description> <language>en-ca</language> <lastBuildDate>Mon, 31 Aug 2009 15:25:52 EDT</lastBuildDate> <copyright>Copyright: (C) Canadian Broadcasting Corporation, http://www.cbc.ca/aboutcbc/discover/termsofuse.html#Rss</copyright> …

Member Avatar for almostbob
0
105
Member Avatar for becraig

an iframe contains a full html file at minimum [icode]<iframe src='file'>alternate text</iframe>[/icode] rambling on, as thoughts just wander, try [icode]<a href="" onclick="window.top.document.getElementById('element').style.display = 'none'">[/icode] as there may be other elements in the document tree(?), not just the immediate parent

Member Avatar for Troy III
0
81
Member Avatar for cab_driver

The W3c Recommendation for element sizes is % example : excluding <head> [code=html]<div style='text-align:center; width:100%;'> <a href="Body.html">Welcome to the World of Cat Bent</a> </div> <div style='text-align:center; width:100%;'> <img src="Images/Purple_lips.gif" width="385" height="481" /> </div> <div style='text-align:center; width:100%; bottom:0;'> <a href="about.html" onmouseover="MM_swapImage('About','','Images/CatBent_aa_rollover.gif',1)" onmouseout="MM_swapImgRestore()"><img src="Images/CatBent_aa.gif" name="About" width="15%" height="100" border="0" id="About" /></a> <a href="yourvoice.html" …

Member Avatar for ingeva
0
138
Member Avatar for slyme

using php the user neve sees the url of the file and without a logged in session nothing [code=php]<?php /* download.php */ if(!session_id) { die ('only registered users'); } // better session validation than that but its a thought example $hiddenfile="../absolutepath/$filename"; header('Content-type: file/mp3'); // I dunno and I'm too lazy …

Member Avatar for slyme
0
409
Member Avatar for roxys

add the marks column to the database default blank/fail enable it with a query that enumerates the same output as the prior attendance query and asks you to update the mark fields, for each row in the result array can be all records or single records

Member Avatar for almostbob
0
209
Member Avatar for jen140

[code=mysql]insert into #temptable ( IDENTITY(int, 1,1) AS number, select * FROM table ORDER BY score desc) SELECT * FROM #temptable ORDER BY number DROP TABLE #temptable[/code]thought process only, cant guarantee the code mysql is likely buggy its been a while select the data you need into a temp table with …

Member Avatar for jen140
0
93
Member Avatar for aerliana

a database column for timestamp of the last update, filled on update with sql now()[code=sql]select from table * where lastupdate < (now()-(5*365*24*60*60));[/code]5*365*24*60*60 = 157680000 ~ 5 years of seconds

Member Avatar for almostbob
0
119
Member Avatar for mrcniceguy

if xhtml, [code=html]<input type='checkbox' name='yournamehere' value='yourvaluehere' checked='checked' />[/code]

Member Avatar for mrcniceguy
0
93
Member Avatar for cab_driver

2.a. like this [url]http://www.w3.org/2005/10/howto-favicon[/url] 2.b and this [url]http://www.winterdrache.de/freeware/png2ico/favicon.html[/url] and 1 . no it doesnt

Member Avatar for almostbob
0
37
Member Avatar for Gearspro

[url]http://www.dynamicdrive.com/dynamicindex9/addbook.htm[/url] [url]http://webscripts.softpedia.com/script/Bookmark-Management/Bookmark-Us-Script-44000.html[/url] [url]http://www.google.com/search?hl=en&safe=off&q=cross+browser+bookmark+us+script&btnG=Search&meta=[/url]

Member Avatar for Gearspro
0
128
Member Avatar for trtcom1

the student table does not need the text course names the reporting logic can print the text names if necessary from the course table student ([U]studentNum[/U],firstName,lastName,), course ([B]courseID[/B], CourseName,courseTotalCapacity), course_allocation ([U]studentNum[/U],[B]courseID[/B]) one link between each datatable

Member Avatar for trtcom1
0
132
Member Avatar for rahul8590

[code=html]<label for='this'>related this </label><input type='radio' id='this' name='oneonly' value='single'><br> <label for='that'>related that </label><input type='radio' id='that' name='oneonly' value='double'><br> <label for='unrelated'>unrelated</label><input id='unrelated'type='checkbox' name='unrelated' value='lots'>[/code] no javascript required **edit** sorry Manuz, just read posts and saw your prior answer

Member Avatar for almostbob
0
130
Member Avatar for flockit

[code=html] <!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"> <head> <style> <!-- .foot {width:95%; background:#66CCFF; border: 1px solid #000; bottom:0; position:fixed; text-align:center; height:50px } --> </style> </head> <body> <div class='foot'>This is a fixed footer</div> </body> </html>[/code] 0px does not work because [INDENT]0px is not a valid css measurement[/INDENT]the …

Member Avatar for mail2saion
0
176
Member Avatar for gokul.raja

perhaps not a direct answer but to determine if the local pc [LIST] [*]has an application that can read the particular version .doc file you intend to print [*]has a printer [*]has security settings that allows scripts to take over their hardware (MALWARE ALERT) [/LIST]it would be better to output …

Member Avatar for farhan386
0
236
Member Avatar for mark2326l

the php string to time function strtotime() allows this [code=php]<?php echo date('l dS \o\f F Y h:i:s A', strtotime('+7 day')); ?>[/code] format the date() how you need, storing the timestamp in the db is more efficient than storing any text representation of the date and time comparisons are simpler, date …

Member Avatar for almostbob
0
88
Member Avatar for leviathan185

[url]http://devphp.sourceforge.net/[/url] using the portable version on a thumbdrive in customer offices the full version on my pc

Member Avatar for leviathan185
0
245
Member Avatar for valonesal

[CODE=css]#Menu li:hover a, #Menu li.over a { background: url(../../images/red/grad2-1.gif) repeat-x top #626A69; }[/CODE]the css above points to a different folder to all the others, 2parents/images intead of parent/images [url]http://jigsaw.w3.org/css-validator/[/url] W3C css validator -- the code itself checks out [url]http://validator.w3.org/[/url] W3C html validator [url]http://www.browsershots.org[/url] to checkout your site in browsers to …

Member Avatar for almostbob
0
90
Member Avatar for cab_driver

[code=html]<img height='100' height='100' alt='alt text' style='float:right'>[/code]works as expected with the sizes specified Note: with the <img> inside the <p> element, only the text of that <p> will wrap around the image. (examples assuming elements are not styled elsewhere ) [code=html]<div><p><img height='100' height='100' alt='alt text' style='float:right'>this text will wrap around the …

Member Avatar for Troy III
0
113
Member Avatar for johny321

havent used the video, have used some of the other howtos on the site [url]http://www.csstutorial.net/[/url]

Member Avatar for almostbob
0
37
Member Avatar for gcombe

Not sure about the exact format, dont have the database structure, but sql query to create the arrays used to create the table is just 3(maybe 4) lines of code[code=php]<?php $dbh = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL"); // query here creates arrays mysql_close($dbh); echo "<table>"; for($val …

Member Avatar for SimonMayer
0
108
Member Avatar for zeusofolus

as noelthefish wrote, the elseif is redundant and takes (miniscule) resources to run, the ! means not, If (not$variable) {do something;} else {do something else}

Member Avatar for zeusofolus
0
110
Member Avatar for jojogirl

make certain you do not change any code you do not understand the 'new programmers' are using php, your original answer is obvious, when you understand what the code says, but difficult when you are used to plain html if you make changes to code that the php depends upon, …

Member Avatar for almostbob
0
132
Member Avatar for Dalty80

expanding on wilch's prior post, his(her?) answer is correct the html <label> tag is terribly underused [code=html]<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Create your news page</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <fieldset> <legend>Checked components will show in the page</legend> <form method="POST" action="http://*********.php"> <label for='header' class='Header'>Header</label> …

Member Avatar for wilch
0
94
Member Avatar for jay.barnes

[QUOTE=wilch;952772][code]AND Ships.Dest_State IN ('LA') ORDER BY 'PU_Date ASC'[/code] Try removing the ASC from the quotes ![/QUOTE] good catch, stared at it and didnt see

Member Avatar for wilch
0
447
Member Avatar for rcdeck

depends on the complexity of the data, and whether you expect to be able to manipulate it online If the importand information is a static table of information its a piece of cake have the script that creates the report output it to a .csv file, with the correct name …

Member Avatar for almostbob
0
108
Member Avatar for isak

[code=php]<div class="content"> <table width="600"> <?php $counter = 0; // initialize counter outside loop do { echo '<tr'; if ($counter++ % 2) {echo 'class="hilite"';} echo '><td width="162"><img src="'.$row_rsAllListings['element_16'].'"></td>'; echo '<td width="426"><h2><a href="\inventory.php?id="'.$id.'">'.$row_rsAllListings['element_1_1']; echo '</a> | '.$row_rsAllListings['element_2'].'<br />'; echo $row_rsAllListings['element_3'].'</h2><br />'; echo $row_rsAllListings['element_4'].'<br />'; echo $row_rsAllListings['element_5'].'Beds / '.$row_rsAllListings['element_6']; echo $row_rsAllListings['element_7'].'Baths / '.$row_rsAllListings['element_8'].'sf …

Member Avatar for isak
0
122
Member Avatar for millsy007

i'm using [url=http://coppermine-gallery.net/]coppermine photo gallery[/url]

Member Avatar for almostbob
0
47
Member Avatar for Takkies

most server language have a mail function php asp perl without coding your own you could google cgi mail script,,php mail script,,asp mail script,, Big nose bird [url]http://bignosebird.com/cgi.shtml[/url] has a cgi script, auto reply, address verification, required fields, redirect on success, etc etc all bells and whistles very configurable from …

Member Avatar for almostbob
0
140
Member Avatar for polo_coins
Member Avatar for ljc1

the mobile version, of my site is at the subdomain m.mysite.com this codescrap first in www mysite.com/index.php redirects [code=php]<?php $mobile = "http://m.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('/Palm/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'])) { …

Member Avatar for almostbob
0
79
Member Avatar for thegreatdanton

[url=http://javascript.internet.com/miscellaneous/smarttables.html]javascript.internet.com/miscellaneous/smarttables.html[/url]

Member Avatar for almostbob
0
83
Member Avatar for apease11

[code=php]if ($checkbox) { $file = 'downloads/Tutorial1.wmv.zip'; // Set headers header("Cache-Control: public ;"); header("Content-Description: File Transfer"); header("Content-Disposition: attachment; filename=Tutorial1.wmv.zip"); header("Content-Type: application/zip"); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . filesize($file) ."; "); [/code] maybe, going to think

Member Avatar for apease11
0
153
Member Avatar for sam1
Member Avatar for almostbob
0
89
Member Avatar for Studio

actually your output is [icode]<img src=../images/meeting.jpgalt=Meeting of CDM coordinators/> [/icode] html requires quotes php requires quotes together requires 2 sets quotes (&escapes) put space in the code where you want space to be, space inside literal text is output, [icode] echo "<img src=\"".$row['photosrc']."\" alt=\"".$row['altText']."\"/>"; [/icode] outputs <img src="myjpg.jpg" alt="myJpeg" /> …

Member Avatar for BzzBee
0
374

The End.