516 Posted Topics

Member Avatar for xylude

I can't replicate your problem. It parses as normal html on my machine. Try to put a simple script like [icode]<?php echo "Hello world"; ?>[/icode]in as an iframe and see if that parses.

Member Avatar for xylude
0
228
Member Avatar for Cobber

These are inline styles. Dreamweaver will do something similar. It will create a class for the element and embed the styles in the head of the document. This will look like:[code=html] <style type="text/css"> <!-- .style1 { font-size: 18px; color: #FF0000; } --> </style> </head> <body> <p><span class="style1">TEST FONT</span></p> [/code]

Member Avatar for MidiMagic
0
124
Member Avatar for Soleybancing

The two important ones are keywords and description. They both go in the head of the document. Metadata help search engines find content relative to what was searched for. Let's look at this page:[code=html] <meta name="keywords" content="HTML and CSS, programming forum, computer forum, programming help, computer help, tech support, technical …

Member Avatar for MidiMagic
0
95
Member Avatar for phouse512

[code=php] $fp = fopen("http://www.mydomain.org/order.txt", "a+"); if($fp){ echo "file opened"; } else{ echo "file did not open"; } [/code]

Member Avatar for phouse512
0
112
Member Avatar for airwinx

Use the header function to return the user to the first page if the variable from first page isn't filled in. [code=php] <?php if(empty($_POST['var from first page'])){ header ('Location:page1.php'); } [/code]

Member Avatar for buddylee17
0
88
Member Avatar for Venom Rush

Something like this should work: [code=php] <?php $content="http://www.daniweb.com/forums/thread135726.html"; $short=substr($content,0,22); $text = preg_replace('@(http://[^\s]+)@sm', '<a class="diaryUrl" target="_blank" href="$1">'.$short.'</a>', $content); echo $text; ?> [/code]

Member Avatar for Venom Rush
0
397
Member Avatar for odysseous
Member Avatar for odysseous
0
54
Member Avatar for blufab

I believe you have to do something like:[code=php] $teamMbrs= array(1 =>$team1, $team2, $team3, $team4, $team5, $team6, $team7, $team8, $team9, $team10, $team11, $team12, $team13, $team14, $team15, $team16); [/code]

Member Avatar for R0bb0b
0
112
Member Avatar for Temax

Each option should have an associated value. For example: [code]<option>Actualité</option>[/code] should be [code]<option value="Actualité">Actualité</option>[/code] Also, if you want to add variables to the url, use method="get". This will automatically place the variables into the query string.

Member Avatar for buddylee17
0
145
Member Avatar for coumarin

Learn them one at a time based on your current interest. If you want to edit pictures, start with Photoshop. If you want to create nice vector graphics, start with Illustrator. All of the programs are considered the industry standard in there purpose. Just pick one and get started. There …

Member Avatar for coumarin
0
70
Member Avatar for Soleybancing

It looks like you may not have published the swf prior to putting it on the web. The reason I say this is because the [URL="http://www.orisfish.com/Flash/new.swf"]file[/URL] has no content. Go to the swf that you have on your local machine and open it up. Does it work correctly? If not, …

Member Avatar for Techman2008
0
107
Member Avatar for webfoot0

There are several errors on the page. Validate with [URL="http://validator.w3.org"]W3C[/URL]

Member Avatar for buddylee17
0
40
Member Avatar for Jr Telecom

This will happen anytime that you don't close a loop. For example something like:[code=php] <?php if($this==$that){ echo "They are equal"; //loop was never closed ?> [/code] Would cause this error. The way to fix it is to find the open spot and close it: [code=php] <?php if($this==$that){ echo "They are …

Member Avatar for buddylee17
0
386
Member Avatar for nowitzk

Yes, this is called an include. Includes can be either client side (JavaScript) or server side (php, asp, jsp, coldfusion...) Basically, what happens is that you save one file for your navigation bar and then include it in each page that needs the bar. Now, if you want to change …

Member Avatar for buddylee17
0
54
Member Avatar for adaykin

So you want a 50x50 image to fit inside a 25x25 cell? It sounds like you are trying to fit 48 ounces of water into a 24 ounce bottle. I'm sorry but I'm not understanding what you ask.

Member Avatar for Troy III
0
134
Member Avatar for adaykin

Is there any reason that you are redirecting with JavaScript instead of php's header function?

Member Avatar for digital-ether
0
134
Member Avatar for MeTc123

Once you get comfortable with the xhtml syntax, look into a server side language. At some point you'll find that xhtml won't full fill all of your needs and will need some server interaction. If you have no preference, I'd recommend php. Php has a wealth of documentation and tutorials …

Member Avatar for MeTc123
0
123
Member Avatar for marcux

You can control cache in php with headers. [URL="http://www.badpenguin.org/docs/php-cache.html"]Here's[/URL] a good read.

Member Avatar for buddylee17
0
92
Member Avatar for lydia21

That's actually a function called strip_tags: [icode] $text='<p>This is some <strong>sample text</strong>. You are using</p> '; echo strip_tags($text);[/icode]

Member Avatar for buddylee17
0
62
Member Avatar for ray-solomon

IE is retarded. [URL="http://www.webfx.nu/dhtml/collist/implementation.html"]Here's[/URL] what I've found regarding the scrollable tbody element.

Member Avatar for rexibit
0
111
Member Avatar for themailsian

What about just doing something like: [icode]<a href="delete.asp" onclick="return confirm('Are you sure you wish to continue?')">Delete</a>[/icode] Or, if you need a function for several links: [code=javascript]<script type="text/javascript"> function confirmSubmit(){ return confirm('Are you sure you wish to continue?'); } </script>[/code] [code=html]<a href="delete.asp" onclick="return confirmSubmit();">Delete</a>[/code]

Member Avatar for Shanti C
0
105
Member Avatar for ikhan42

Here are a few scripts available to get rid of the IE click to activate problem. [url]http://www.findmotive.com/2006/10/13/ie-click-to-activate-flash-fix/[/url] [url]http://blog.deconcept.com/swfobject/[/url]

Member Avatar for erico564
0
94
Member Avatar for Sheridan

Here's a good guide to configuring Apache on XP. [url]http://www.pcstats.com/articleview.cfm?articleID=1868[/url]

Member Avatar for martin5211
0
105
Member Avatar for hameed007_pk
Member Avatar for buddylee17
0
82
Member Avatar for Designer_101

Yes, this is called a preloader. It's a movie clip that should go in at the beginning of the timeline and play until getBytesLoaded=getBytesTotal. [URL="http://www.senocular.com/flash/tutorials/preloading/"]Here's[/URL] a tutorial with many downloadable examples and actionscript which should get you going in the right direction.

Member Avatar for buddylee17
0
91
Member Avatar for kotkoda

This will only work locally (and may not work at all). I have only got this to work on XP-Professional. Go to Control Panel->Administrative Tools. You may have to click Switch to Classic View to find Administrative Tools. Now go into Data Sources (ODBC). Click on MS Access Database and …

Member Avatar for kotkoda
0
83
Member Avatar for MrMonirul

Do you mean like: [code=php] for($i=1; $i<=3; $i++) { $abc="ABC"; $abc .=$i; $abc .=" "; echo $abc; } [/code] Outputs: ABC1 ABC2 ABC3

Member Avatar for vicky_rawat
0
160
Member Avatar for kuldeep04

Go into the script and add your email address to the mail functions to property.

Member Avatar for kuldeep04
0
106
Member Avatar for hijessie

You are treating specialevents as one value, when it is actually an array. What I would do would collect all values of the array and shove them into one variable:[code=php] $selectedevents=''; foreach($_POST['selectedevents'] as $val ) { $selectedevents .= $val.", "; } $selectedevents=substr($selectedevents,0,-2); [/code] Now the variable $selectedevents is ready to …

Member Avatar for nav33n
0
100
Member Avatar for jrb47

Save the union query. Create a new create table query that uses the union you just created.

Member Avatar for boblarson
0
171
Member Avatar for jmwolv

Welcome to DaniWeb! This forum is specifically for JavaScript, Dynamic HTML, and AJAX. Does your problem fit into this category? If not, post your problem in the [URL="http://www.daniweb.com/forums/forum143.html"]HTML[/URL] forum. Please be as specific as possible with your problem and post the code of the suspected problem.

Member Avatar for buddylee17
0
49
Member Avatar for xresplendencex

It's called a textarea. [code=html] <textarea rows='5' cols='42'> Put whatever you'd like to be inside the textarea here</textarea> [/code] To make the box wider, increase the cols value. To make it taller, increase the rows value.

Member Avatar for xresplendencex
0
107
Member Avatar for priyavardheesh

I would start off at google. Search for AJAX Examples. [URL="http://www.degraeve.com/reference/simple-ajax-example.php"]Here[/URL] is a good simple example that doesn't involve a ton of code. In the example, a variable is passed to a cgi on the server using an xmlhttprequest and receives the cgi's response. If you'll notice, the url never …

Member Avatar for buddylee17
0
118
Member Avatar for giftangel

Images are very tricky for new designers. You have to understand that the html file contains a pointer ([icode] <img src="images/image1.jpg" />[/icode]) to the image. The src attribute value is the pointer that tells the browser exactly where the image to download is. In this case, the image, image1.jpg, is …

Member Avatar for erico564
0
97
Member Avatar for vaish.rajan

You should be placing the variable in between the textarea tags with a conditional:[code=php] <textarea id='userInput' name="textspace" value="" cols="40" rows="3" > <?php if(isset($_POST)){ echo $textspace; } ?> </textarea> [/code] and for the edit, you've just got to read the file and assign it to a variable: [code=php] if ($_POST['edit']){ $myFile …

Member Avatar for vaish.rajan
0
8K
Member Avatar for rori

I believe you have to use url encoding to get Flash to read it. For example, %26 will be displayed as &. [URL="http://us2.php.net/urlencode"]Here's[/URL] the urlencode manual.

Member Avatar for buddylee17
0
304
Member Avatar for marcux

You could do this a number of ways. The easiest, in my opinion would be [URL="http://www.adobepress.com/articles/article.asp?p=464427&seqNum=1"]Flash[/URL]. However, if Flash isn't an option, [URL="http://www.daniweb.com/forums/thread131830.html"]JDOMP[/URL] or AJAX will do it. Both of these will require some understanding of JavaScript and the DOM. In all three however, the same basic steps occur. Variables …

Member Avatar for buddylee17
0
140
Member Avatar for Grantmitch1

Use javascript:[icode] <script type="text/javascript"> if (navigator.appName == "Microsoft Internet Explorer") { document.write('If you are using an outdated version of internet explorer your browser may not show the images correctly. In order to prevent this please download the latest version of Microsoft Internet Explorer:<a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=9AE91EBE-3385-447C-8A30-081805B2F90B&displaylang=en"><font size="2"> Click Here for the latest …

Member Avatar for Grantmitch1
0
82
Member Avatar for macneato

Tack the course name onto the query string: [icode] <a onclick="window.open('popup.php?course=Excel 2003 Level 1','', 'width=210, height=600, location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no'); return false" href="">Excel 2003 Level 1</a> <a onclick="window.open('popup.php?course=Excel 2003 Level 2','', 'width=210, height=600, location=no, menubar=no, status=no,toolbar=no, scrollbars=no, resizable=no'); return false" href="">Excel 2003 Level 2</a>[/icode] Then use php in the …

Member Avatar for buddylee17
0
89
Member Avatar for akshit

Create two forms, one for teacher, and one for student. In both, include the following dropdown menu: [code=html] <select onchange="MM_jumpMenu('parent',this,0)"> <option value="">Please select student or teacher..</option> <option value="teacher.php">Teacher</option> <option value="student.php">Student</option> </select> [/code] Include this javascript function in the head: [code=javascript] <script type="text/javascript"> function MM_jumpMenu(targ,selObj,restore){ //v3.0 eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'"); if (restore) selObj.selectedIndex=0; } …

Member Avatar for nav33n
0
171
Member Avatar for besart

This will set a cookie named user which will expire in one hour: [code=php] <?php if (isset($_COOKIE["user"])){ $message= "Ouuu you already have one account!"; } else{ setcookie("user", "Current User", time()+3600); $message="Welcome new user"; } ?> <html> <head> </head> <body> <?php echo $message; ?> </body> </html> [/code]

Member Avatar for R0bb0b
0
103
Member Avatar for makbot

You are right about the onclick function. The onclick function is a JavaScript event handler so you'll need to incorporate JavaScript (else you'll have to have a page refresh after each button is clicked). [URL="http://javascript.internet.com/games/memory-by-markus.html"]Here[/URL] is a link to a memory game tutorial written in JavaScript and PHP. I believe …

Member Avatar for digital-ether
0
139
Member Avatar for confusedofphp

You could try checking the referring page before incrementing the Session counter. Obviously you'll have to change the url to the one you are looking for: [code=php] if($answer1==$res["ans"] && $_SERVER['HTTP_REFERER']=="http://localhost/ques2.php") { $_SESSION['ans']++; } [/code]

Member Avatar for somedude3488
0
119
Member Avatar for autumn13

Sounds like the link on the back button is wrong. Post some code or a link to the page.

Member Avatar for autumn13
0
72
Member Avatar for kotkoda

Connecting to access with php is very simple. You will need to be able to access the IIS control panel to set things up. Otherwise you need to talk to the server admin to set an ODBC Connection for you. Also, make sure that the db is on the web …

Member Avatar for kotkoda
0
615
Member Avatar for dave_nithis
Member Avatar for kceleb9
0
71
Member Avatar for kevin wood

I believe this should work. Lets say that you have 2 animations that take 2 frames each(4 frames total):[code=actionscript] var randomNumber = Math.floor(Math.random()*4) if (randomNumber == 0){ gotoAndPlay(1); } if (randomNumber == 1){ gotoAndPlay(1); } if (randomNumber == 2){ gotoAndPlay(3); } if (randomNumber == 3){ gotoAndPlay(3); } [/code]

Member Avatar for kevin wood
0
66
Member Avatar for Nameste
Member Avatar for zkrakov

It sounds like you need an onchange event to trigger an AJAX function. Basically, when an option from the drop down menu is selected, the appropriate elements of the form will change. Is this correct?

Member Avatar for buddylee17
0
29
Member Avatar for kahaj

Don't do this. You are going to get hammered with spam. At least use javascript to [URL="http://www.virtuallyignorant.com/fightspam.htm"]mask[/URL] your email address. You need some type of form processor on the server to validate and sanitize the mail. Your time will be much better spent figuring out whats wrong with the CGI …

Member Avatar for kahaj
0
70

The End.