2,295 Posted Topics

Member Avatar for kmackmac

[code=php]function mail_attachment ($from , $to, $subject, $message, $attachment,$direct){ $fileatt_type = "audio/mpeg"; // File Type (also tried "application/octet-stream") $files=$attachment; $email_from = $from; // from email address $email_subject = $subject; // Subject of the email $email_txt = $message; // Email Message $email_to = $to; // to email address $headers = "From: ".$email_from; …

Member Avatar for almostbob
0
91
Member Avatar for ItecKid

[code=javascript]function highlight(word) {document.getElementById (word).bgColor="blue";}[/code]you will also require another javascript and an onmouseout() to reset the background or in short order everything will be blue css is smaller faster and works when javascript is disabled for security reasons [code=css].hl {background:#ffffff; } .hl:hover { background:#0000ff; }[/code] [code=html]<span> this does not highlight on …

Member Avatar for ItecKid
0
3K
Member Avatar for AdRock

in ff document id-s usually have to be correctly formed [icode]searchForm.locationSelect.value = value;[/icode] usually should be [icode]document.searchForm.locationSelect.value = notreservedword;[/icode]

Member Avatar for theighost
0
213
Member Avatar for krisov

[QUOTE=Sinha's;1160390]While Layout designing in Photoshop, one should slice images properly. Smaller images should be in gif format and large one in jpeg format. One should maintain the number of slices up to 20. This will help to boost the site loading time.[/QUOTE] utter **expletive deleted** referring to bovine excrement negotiating …

Member Avatar for almostbob
-3
141
Member Avatar for x_mysterious_x
Member Avatar for snitch321

solution: dont put sounds on the web page, there are enough annoying useless crap sites, there is no requirement for any more

Member Avatar for almostbob
0
143
Member Avatar for tiffythom

framesets are outdated, and if you were to look ath the results of whatever code you developed from the BS supplied as a fix on any other browsers or screen resolution, it looks nothing like you expect current best practice for screen layout ueses ems and % sized elements as …

Member Avatar for almostbob
-1
1K
Member Avatar for Izzy123

javascript searching for the selectindex of the radio buttons would accomplish it, disable the second selection, exact help is easy, more accurate if you post the code you have, for one of the javascript mavens to post an edit to anything written now, would be a guestimate at best this …

Member Avatar for Izzy123
0
91
Member Avatar for SCoder1

actually the table data does not require this precision, only the output data does given the table column is returned as [icode]$row['price'][/icode] at line 26 in the original [code=php]$format_number = number_format($row['price'], 2, '.', ''); /* orignal number, 2 dec, dot sepaarated, nothing between thousands */ echo "<td>$".$format_number."</td>";[/code]or[code=php]echo "<td>$".number_format($row['price'], 2, '.', …

Member Avatar for almostbob
0
100
Member Avatar for tristan17

[url]http://www.sourcecodeonline.com/details/hsv_conversion_utilities.html[/url]

Member Avatar for almostbob
0
414
Member Avatar for nakul_pancholi

the link target href has to be defined by a 'name' attribute in the target page, If you are attempting to hit a particular point on the target page, examine the link on that page and use that as your target, the target page may not be using the title …

Member Avatar for almostbob
0
99
Member Avatar for albertkao

dom convention refers to id, (in the html scrap below the input has been given an id to make the javascript conventionally valid) name is not a singleton, every option in a radio button set has the same name, but each id can only refer to a single element [code=html]<div …

Member Avatar for almostbob
0
283
Member Avatar for johndoe444

wamp installer for Windows Apache MySql Php a php ide with php interpreter bult in [url]http://www.google.com/search?hl=en&q=php+ide&meta=&rlz=[/url]

Member Avatar for almostbob
0
86
Member Avatar for RucGwl

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 …

Member Avatar for diafol
0
153
Member Avatar for hassancool
Member Avatar for psathish2

There are two session_starts, line 1, line 174 fix it there shouldnt really be a session_start in the image generating script, it is supposed to use the session established in the calling file

Member Avatar for cwarn23
-1
171
Member Avatar for vantrax

do the counter serverside that javascript does not run on my pc, security does not let it something as simple as [code=php]<dtd><html><head></head><body>bla bla bla <?php $file = "../cgi-bin/count.cnt"; if(is_readable($file)) { $count= file_get_contents( $file ) + 1 ; $fp = fopen($file, "w+"); fputs ($fp, $count); fclose($fp); Print "<span id='count' style='text-align:right;'> you …

Member Avatar for Airshow
0
131
Member Avatar for JimmyLloyd

pet peeve [rant] Try hard to remove the pixels from your css definitions modern monitors have a dot pitch of 0.22mm (.008inch) [and the dot pitch only gets smaller with each generation] 22px in a .22mm dot pitch is a div size one eighth inch tall 80px gives a div …

Member Avatar for diafol
0
93
Member Avatar for anakanya

at least you both put your homework requests in the same thread[INDENT]If the page is being generated, to be redirected immediately, why not just put in a redirect in the page <head>, and populate the redirect instead of, or as well as, a link, from whatever (not shown) script is …

Member Avatar for almostbob
0
4K
Member Avatar for virtualmisc
Member Avatar for teajayo

Its ugly when it doesnt work, Anything that works is beautiful Ardav's code works => not ugly

Member Avatar for teajayo
0
90
Member Avatar for BlueCharge

Post the code that causes the problem, not a url to the site It is not anyones job to go to your site copy everything, find the error, fix it and repost it, you will get more assistance if all the person has to do is look at the post …

Member Avatar for diafol
0
99
Member Avatar for Kruptein

[code=css]#content { position:absolute; top:auto; left:15px; right:130px; bottom:15px; background-color:#00CC00; font-family: Arial, Helvetica, Tahoma, sans-serif; }[/code]

Member Avatar for Kruptein
0
70
Member Avatar for D4n1sD

there are a number of premade scripts on hotscripts, phpscripts and most other script source repositories that will accomplish what you want, some that require sql databases, some very simple that store data in a flat file, or send email thjose scripts generally come with full install instructions to prevent …

Member Avatar for almostbob
0
132
Member Avatar for teawithmilk

starting point[code=html]<img width='100' height='100' src='blank.jpg' id='mainpic' style='float:right;'> <a href='somelink.html' onmouseover='document.getElementById("mainpic").src="somelink.jpg";' onmouseout='document.getElementById("mainpic").src="blank.jpg";'>Somelink</a><br> <a href='otherlink.html' onmouseover='document.getElementById("mainpic").src="otherlink.jpg";' onmouseout='document.getElementById("mainpic").src="blank.jpg";'>otherlink</a><br> bla bla bla bla bla bla[/code] it is easy to see the links are greatly similar, so they can populate with data from the database, if the db is the source of the images and …

Member Avatar for almostbob
0
84
Member Avatar for J217

Post the code, everybody here cares enough to help, nobody cares enough to go search out the code copy it edit it and then paste it back for your edification

Member Avatar for almostbob
0
76
Member Avatar for Eddie Traversa

Try, go to MicroSoft and copy and paste the code, read the tutorials, and follow the explanations of what this code snippet, cut directly from MS does [url]http://www.microsoft.com/windows/windowsmedia/howto/articles/adsolutions2.aspx[/url] is a place to begin

Member Avatar for almostbob
-1
669
Member Avatar for symphil

window.open will not work in the majority of users browser, they will not turn off the popup blocker for your potentially malicious site use a layer in the existing page to give the appearance of a new window without being blocked

Member Avatar for almostbob
0
212
Member Avatar for nakul_pancholi

Any book is out of date, before it is even published W3schools::: the w3 consortium is responsible for web standards, the code standards of html xhtml css or you could be another **expletive deleted** person producing code that [LIST][*]fails in half the browsers [*]takes forever to display [*]looks like crap …

Member Avatar for shironui
0
118
Member Avatar for Cap'nKirk

You need the extension in the table or file handling wont work, you dont need it displayed in the download link [code=php]<?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>'; } ?>[/code]

Member Avatar for Cap'nKirk
0
144
Member Avatar for Arun.N
Member Avatar for Leratom

[code=html]<img id='bigimage' src='image3.jpg' width=x height=y> <a onclick="document.getElementById('bigimage').src='image1.jpg';">Image1</a> <a onclick="document.getElementById('bigimage').src='image2.jpg';">Image2</a>[/code]

Member Avatar for almostbob
0
87
Member Avatar for Jooks

When using csv files you should be using CSV operators [url=http://www.php.net/manual/en/function.fgetcsv.php]fgetcsv()[/url] see also [url=http://www.php.net/manual/en/function.fputcsv.php]fputcsv()[/url] dont use a fork to serve soup

Member Avatar for Jooks
0
108
Member Avatar for samarudge

I followed this google car around for half a day they fuzzed my face out of every pic I am very upset My car is in google maps a hell of a lot

Member Avatar for Geekitygeek
0
171
Member Avatar for peepster
Member Avatar for almostbob
0
54
Member Avatar for leto-hostes.com

no quotes on table names column names [code=php]mysql_query("INSERT INTO Persons (FirstName, LastName, Age) VALUES ('Peter', 'Griffin', '35')"); // so $sql="INSERT INTO letohost_user.player (USER_ID, USERNAME, PASSWORD, EMAIL, POSITION, ACTIVE, MEMBER) VALUES (NULL, {$_POST['register_username']}, {md5($_POST['register_password']}), {$_POST['register_email']}, '0', '0', '0');)";[/code][url]http://www.w3schools.com/php/php_mysql_insert.asp[/url]

Member Avatar for diafol
0
185
Member Avatar for rchhimnpa

most people would look at at the html reference for input type=radio and the parameters thereto [url]http://www/w3schools.com[/url] We are not studying your course and gain no benefit from doing your homework

Member Avatar for almostbob
0
64
Member Avatar for prem2
Member Avatar for mvblhp

on login update lastlogin with sql now() the timestamp of now [code=mysql]delete low_priority from table where last_login < (now() - 2592000 ) order by last_login limit 100[/code]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 …

Member Avatar for almostbob
0
174
Member Avatar for chathuD

most would do that in php/asp so as not to transfer as much information and keep the page the user sees (eg view source) simpler[code=php]<?php $today=getdate(); if($today['hours'] > 17) { $display='evening';} elseif($today['hours'] > 11) { $display='afternoon';} else $display = "morning"; echo 'Good '.$display;?>[/code] view source [icode]Good morning[/icode] [code=javascript]datetoday = new …

Member Avatar for chathuD
0
153
Member Avatar for daviddoria

post the code, including the css that you are using we dont do homework, nobody is going to look it up, fix it, and post it for you but we do show the bugs in what you have tried

Member Avatar for almostbob
0
103
Member Avatar for Raik.48

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

Member Avatar for almostbob
0
60
Member Avatar for bubbafunk1

MIME html email eg[code=php]<?php $email = $_REQUEST['email']; $headers .= "Reply-To: me@myemailaddress.co.uk\r\n"; $headers .= "Return-Path: me@myemailaddress.co.uk\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $message = "<html><head><style='text/css'>.red {color:red;}</style></head><body>"; $message .= "<h1> This is a test </h1>"; $message .= "Thank you for applying for an INSTANT DISCOUNT CODE. \n\n <span class='red'> …

Member Avatar for almostbob
0
118
Member Avatar for dhudnall

line 9 in the code of the second post should look something like [code=asp]Response.Write ">" & location & "</option>"[/code] and there should be a [icode]</select>[/icode] after the loop

Member Avatar for almostbob
0
139
Member Avatar for yun

It is as saiprem wrote, the semantics of php do not consider, as people do in spoken language, that post get request are 'similar enough' to be interchangeable $_post does not show the data sent in the query string, and is harder to fake if the data being edited is …

Member Avatar for almostbob
0
93
Member Avatar for henpecked1

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 [url]http://dev.mysql.com/doc/[/url] for the version to be used from theses sites you will get absolutely accurate answers, code samples and instructions cmon …

Member Avatar for almostbob
0
164
Member Avatar for ryy705

production code should not be indented, it causes problems whitespace in your code html interprets whitespace as a space multiple tabs and spaces before <img are a space, that space shows between the images [code=html]<img src="http://goyami.corante.com/archives/images/july4th05.gif" /><img src="http://www.logoogle.com/images/logooward/july4th04.gif" />[/code]no space I assume the closing > in line 31 is a …

Member Avatar for almostbob
0
105
Member Avatar for rpgwebsolutions

most table updates can be done with mysql now, that stamps the current timestamp to the field and output from the timestamp any which way you like with regular date functions google MYSQL NOW to find the correct code for your app do not use any text date time function, …

Member Avatar for almostbob
-1
89
Member Avatar for apegram

Nobody notices if it works they only notice when it doesnt, and then the coffee steaming out of the guts of it is never their coffee, even when the empth cup is in their hand Nimby and the SEP effect Not in my back yard and Somebody Else's Problem

Member Avatar for geekgoddess
1
242
Member Avatar for juanmorris

It can be done with any server side language but there isnt any point the favicon is supposed to identify the site, really messes up the purpose if you change it, because returning visitors will also get a different favicon

Member Avatar for almostbob
-1
76

The End.