buddylee17 216 Practically a Master Poster

Create two forms, one for teacher, and one for student. In both, include the following dropdown menu:

<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>

Include this javascript function in the head:

<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;
}
</script>

The function will cause the forms to toggle, depending on which option is selected in the dropdown. There are many ways of doing this, but this seems easiest to me.

buddylee17 216 Practically a Master Poster

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 server.

1.) Create an ODBC Connection. Here are instructions.
2.) Establish a connection through php (See the above link for more in depth examples):

<?php
$conn=odbc_connect("DSN","" ,"");//Replace DSN with your Data Source Name created in step 1
?>

Good luck!

buddylee17 216 Practically a Master Poster

The read eye tool is used to correct red eyes in photography. Here is some explanation about the red eye effect. Here is some explanation about how the tool works in Photoshop.

buddylee17 216 Practically a Master Poster

You can do whatever you want with JavaScript. JavaScript runs on the users machine, is under complete control of the user, and the user can disable it (easily). While disabling right click or print screen will keep the average user at bay, it will not stop someone who understands what really goes on when a page is rendered by the browser. It seems that you are content on disregarding Jonathan's advice so I leave you with this: Install the Firefox browser and the web developer add in found here. Now click on Disable -> All JavaScript. Now see if you can't download any image displayed. Right about now you should be at google looking into watermarking images.

buddylee17 216 Practically a Master Poster

So it's counting the space in between the words each time? Never thought of doing it this way. Great approach!

buddylee17 216 Practically a Master Poster

Use substr. I hate to repost this so here's the link. Good luck

buddylee17 216 Practically a Master Poster

Come up with your own thing. While MySpace is not difficult to immitate, it will be very difficult for you to grow a community. There are immitators everywhere. For the sake of the php community, Mar Zuckerberg has already done it with Facebook(using nothing more than php and apache). Do you have any clue how many dedicated servers myspace.com has? Unless you are a millionaire, out of your league. You can't compete. Try something easier, like trying to out produce exxon in the gasoline industry. Seriously, don't re-invent the wheel. I feel your pain and I know how slow myspace is. It's asp.net mixed with coldfusion mixed with a severe scalability problem. I don't think it has any relation to one particular web language in general but yet, a mass amount confusion from the PM down. These people couldn't differentiate an electric fan from a turbine wheel. However, the idea has been pocketed and the money has been made.

buddylee17 216 Practically a Master Poster

I dont believe that you can access mail remotely via tcp.

buddylee17 216 Practically a Master Poster

Repost your question in the JavaScript forum. Html and/or CSS can not do what you ask.

buddylee17 216 Practically a Master Poster

You missed the second s in substr: $joketext=subtr($row['joketext'],0,10); should be $joketext=substr($row['joketext'],0,10);

buddylee17 216 Practically a Master Poster

Use substr to get the first 20 characters of the string:

$first=substr($content,0,20);
print $first;

In this example, $content is the original paragraph, 0 is the starting point of the content to be returned, and 20 is the number of characters to be returned.

buddylee17 216 Practically a Master Poster

Could be wrong but I think this will require some type of middleware like PHP to communicate between them.

buddylee17 216 Practically a Master Poster

The source code shows the image to be inside a one row one column table that encompasses the entire page. I have no idea why they did it this way because css would have been both cleaner and easier.

buddylee17 216 Practically a Master Poster

Its Css and not really anything advanced about it. If the image is big enough (like the site you referred to), it won't repeat. If it's small and you don't want it to repeat, simply say:

background-image:url('backgroundImage.jpg');
background-repeat:no-repeat;
buddylee17 216 Practically a Master Poster

I agree. Disable javascript and its useless.

buddylee17 216 Practically a Master Poster

This site claims it can with something called the image gaurdian. Explanation copied from site:
"Here comes the Image Guardian - it will split your images into pieces and will generate the appropriate code (which will be then encrypted by HTML Guardian) to display those pieces in your pages as if this is an integral, non-splitted image.
This will make image theft nearly impossible - if someone wants to get some of your images, he/she will not be able to get the entire image, only a pieces of it saved under random, meaningless names. It will be very hard to determine that a certain piece is a part of a certain image. Let's say your website has 10 images, and you configured Image Guardian to split them into 3x3=9 pieces each - this will result in 90 image pieces with random names, mixed with a lot of images from other websites visited. A determined person may still be able to find all the pieces of a certain image, but finding them and joining them together to recreate the original image will require a lot of time, knowledge and expensive image editing programs(like Photoshop and similar). In most cases, this will also lead to a seriously decreased image quality. We can say that HTML Guardian's image protection will decrease the risk of image theft with 95-98% (but not 100%).."

buddylee17 216 Practically a Master Poster

Do you mean textbox?

buddylee17 216 Practically a Master Poster
buddylee17 216 Practically a Master Poster

JavaScript is executed by the browser on your local machine. JSP is executed by the server which hosts the site. So when you visit a page written in jsp, the server executes the jsp and then delivers the page across the internet connection to your browser. If any JavaScript is in the page, your browser will then execute it.

buddylee17 216 Practically a Master Poster

I think you are looking for a preloader.
A preloader is a movieclip which plays until getBytesLoaded=getBytesTotal (the whole flash movie is loaded). After loaded, the movie goes to the main frame using gotoAndPlay.
Here's a tutorial.

buddylee17 216 Practically a Master Poster

The reason is that each browser applies its own default stylesheet to your page. What this means is that each browser adds a certain amount of margin, padding, line height... to each element. The problem with this is that IE may add 2px and FireFox may add a different amount. Thus the inconsistency problem that has plagued the world of web design. The only way to make things appear consistent is to reset the elements you will be using in the beginning of your stylesheet. I often post this link, as the question comes up quite often. Have a read, it should clear some things up. Here is a link dealing with white space that IE adds in between images.

jephthah commented: good links, thanks +3
buddylee17 216 Practically a Master Poster

I'm guessing you want a different redirect based on some portion of the url. I could be wrong. What I would do is let JavaScript get the URL, trim it down to just the domain name using substring, and then compare the domain name to one of the possible values. If equal redirect to one point, else redirect to another:

if ((sinceLastCheck - pageStarted) > timeOutVal)
{
    var theURL = document.location.href;//get the url
    theURL=theURL.replace("http://www.","");//remove 'http://' from beginning
    theURL=theURL.substring(0, 13);//Remove everything from string except for the domain name. You'll have to adjust this to the exact length of the domain name length.
    if(theURL=="w3schools.com")
    {
      document.location.href="Timeout.aspx";
    }
    else
    {
    document.location.href="Another_Timeout.aspx";
    }
}
buddylee17 216 Practically a Master Poster

No, CSS is not hard to learn but, it does take time to master. You'll catch the basic concepts in a day or so but, because you can manipulate the design in so many different ways, it will take a while to master them all.
You'll need to get used to previewing the site in different browsers because what looks great in FireFox may not look so good (or even work) in IE and vice versa.

You can find just about anything you need to know on CSS at W3Schools.

alwaysworking commented: Thank you! +1
buddylee17 216 Practically a Master Poster

The Vertical Line (Vertical Bar, Pipe) key (|) is the key that looks similar to a colon, but uses two lines instead of two dots. Press (shift)+(\).
The easiest way to do this in dreamweaver design mode would be to click common-> table on the insert window. Create a table with one row and the number of columns will be the number of links you have. Put the word and | in each cell. Then highlight the word, go to the properties panel, and add the corresponding link. You could also achieve this with an unordered list and an inline display but this is a little more advanced.

buddylee17 216 Practically a Master Poster

I guess you mean this:

<a href="http://www.google.com">
<img src="<?php echo get_bloginfo('url') ?>/serv67/cmg2/img/blog2.jpg" alt="pic" />
</a>
buddylee17 216 Practically a Master Poster

Ok, so it should be name="recomendedbyid" and not name="id". Just skimmed over the code.

buddylee17 216 Practically a Master Poster

$id = $_GET['id']; This is looking for a get variable with name='id'. Change
name="textfield"
to
name="id". I believe this will fix it.

buddylee17 216 Practically a Master Poster

Here's a tutorial on how to roll your registry back in the recovery console. Basically you pick from several restore points and reset your registry to that day. Fairly painless.

buddylee17 216 Practically a Master Poster

Your going to have to use JavaScript. PHP runs on the server. Once the server passes the page to the client, PHP, by itself, can no longer interact with the page. Only JavaScript can. You could either:

a.) have php print or echo a javascript function and an onchange event.
or
b.) Look into incorporating AJAX.

buddylee17 216 Practically a Master Poster

I think you are looking for the mysql_field_name() function. Have a look here or here.
Keep in mind that in doing this, you are revealing your table layout word-for-word.

buddylee17 216 Practically a Master Poster

So glad you decided to use the php forum to promote your site. Next time, use a title like "Desperate Web Developer Seeking Employment". Come on man.

buddylee17 216 Practically a Master Poster

You can find out machine specific ram information for any machine with the Crucial Memory Advisor™ tool at www.crucial.com.

buddylee17 216 Practically a Master Poster

You want something like this? This textbox clears when the user clicks it.

<input type="text" onfocus="this.value=''; this.onfocus=null;" name="notes" value="enter ticket number here" />
peter_budo commented: Good example, nice work :) +8
buddylee17 216 Practically a Master Poster

Your checkboxes need to be an array that php can loop through. All should have a name="chkField[]" or something similar. The value is the only thing that should be different between one checkbox and the next. Then in the form processor,

foreach($_POST['chkField'] as $value){
$sql="DELETE FROM TABLE WHERE id=$value";
$result=mysql_query($sql);
}
buddylee17 216 Practically a Master Poster

Alright. I got the registry fixed. I had to back 3 days but its up.

buddylee17 216 Practically a Master Poster

I tried the suggestion for the MS site. When I get to here:
copy c:\windows\repair\system c:\windows\system32\config\system
It says that the system cannot find the file specified. So I put the c:\windows\tmp\system.bak
back as c:\windows\system32\config\system. I've tried using several previous registry RP's and none are making a difference. Still, nothing happens when I click the button to logon.

buddylee17 216 Practically a Master Poster

Hi all. I have been doing some registry tweaks lately to improve performance. Everything went great for a couple of days and now xp wont let me login. It boots normally and everything appears to be fine but when I click on the profile to login, nothing happens. Last Known Good Configuration didn't work. The same thing happens in safe mode. I click the user to login and nothing happens. I've tried restoring the registry as shown here but that doesnt fix it either. Any ideas?

buddylee17 216 Practically a Master Poster

I had this problem with a site. Turns out, IE has some type of default body margin that attempts to center the page when you don't instruct it to. There is no sure fire way to center a page without the use of the deprecated center tags and they will only validate in xhtml 1.0 transitional. Using the css: text-align:center, will center your text inside the element but won't center the element. I'm sure that Midi can shed more light on the subject. Firefox and most other good browsers, by default, aligns everything left(0,0). Did you put any margin on the body or position it? If not, I bet it's also aligned left in NetScape, Opera, and Safari.

For a consistent look across all browsers, first reset the margins: html,body{margin:0;padding:0;} Then assign a margin to the body. body{margin:10%;} Depending on the current width of you page content, this number may need to be increased or decreased. This will take some trial and error and also some testing on different browsers and screen resolutions to find a happy medium.
Here's a read that I often post when people ask about cross browser consistency. I've found that the only way to a consistent look across all browsers is to reset the default margin and padding on the elements you plan to use and then assign them a new value.

buddylee17 216 Practically a Master Poster

You should probably start out by pulling the commas out with str_replace. Then use (int).
Here's a tutorial.

buddylee17 216 Practically a Master Poster

Shouldn't for (var counter=0; counter<theForm.del.length; counter++) be for (var counter=0; counter<theForm.del.length; counter++){ and return(true); should be return filledIn;

buddylee17 216 Practically a Master Poster

Photoshop is the industry leader in photo editing. It's the program that almost every professional photographer uses. It's also great for editing images and exporting to the web.

However, if you are looking to become a better web designer, you may find that Adobe Fireworks is what you are looking for. It is terrific for creating navigation bars, buttons, and other web graphics from scratch. It is also a good tool for slicing an image into multiple lightweight images. It basically enables you to create all the graphics you'll need for a professional CSS layout.

Also, Micro$oft has attempted to gain some of Adobes market with it's Expression Studio but, I haven't tried it out. The studio, along with Visual Studio 2008, Server 2003, and XNA Game Studio is free to download at the DreamSpark site if you are currently enrolled at a college or university.

buddylee17 216 Practically a Master Poster

Replace margin-left:50% with padding-left:50% .

buddylee17 216 Practically a Master Poster

Absolute position the elements. If you want them to be positioned on the far right and left sides of another element you may also need a container div with a relative position.

p {
display: inline;
position: absolute;
left:0px;
}

ul, li {
position:absolute;
 right:0px;
 display: inline;
 margin: 0;
 padding: 0;
}
buddylee17 216 Practically a Master Poster

Dave, I've looked at your page in IE6 and IE7, Safari 3.1.1, and Firefox 2.0 on XP SP2. The page looks consistent across all. I don't see any lines under the navigation links and they all seem to be under the header image.

buddylee17 216 Practically a Master Poster

Do you know anything about server side scripts (php,asp,jsp...) and which one(s) can you use on your server. Once you find that out, look into using sessions.

buddylee17 216 Practically a Master Poster

No problem, please dont forget to mark the post as solved.

buddylee17 216 Practically a Master Poster
my_sound.onSoundComplete = function() {
numtrack++;
if (numtrack == 2) {
numtrack = 1;
}
buddylee17 216 Practically a Master Poster

my_sound.loadSound("music/track1.mp3", false); This tells me that the music is being downloaded and is not actually in the flash movie or library. Look in the folder that you downloaded. It should contain a subfolder named music. Inside (I think) will contain mp3's named track1.mp3,track2.mp3, & track3.mp3.

my_sound.onSoundComplete = function() {
numtrack++;
if (numtrack == 4) {
numtrack = 1;
}

This is incrementing the track number by one at the end of the song and resetting the song number after track3.mp3. To change the songs, take the mp3's that you want in the player and name them track1.mp3, track2.mp3...and replace the current songs in the music folder.

This is all just a guess but hopefully it will help get you going in the right direction.

peter_budo commented: Good code example +8
buddylee17 216 Practically a Master Poster

Try putting this at the top of every page that you want the counter to increment. I think this is what you are asking.

<?php
session_start();
if(empty($_SESSION['counter'])){
//initialize the counter if empty
$_SESSION['counter']=1;
}
else{
//increment the counter if counter is set
$_SESSION['counter']++;
}
if($_SESSION['counter']>=500){
//redirect if counter >= 500
header('location:index.php');
}
?>
buddylee17 216 Practically a Master Poster

As stated above, email is a little tricky and each isp filters it differently. The main thing to do is to include the appropriate headers and smtp information. I use a php mailer class and it works for yahoo, hotmail, and gmail(they will disable the image by default but the client can easily enable it). It allows me to send both an html version and a plain text version of the email. You may not be familiar with php but, you're going to have to use some sort of server script to send the mail. As for embedding images, I've found that you're much more likely to get your html in the email to work if you don't use quotes. What I mean is that where you would normally put <img src="http://..." /> skip the quotes and put <img src=http://.. /> Here is a good page to look over regarding good html email principals, css in an email, and how the big mail servers handle it.