Carsten
Members-
Content Count
52 -
Joined
-
Last visited
Everything posted by Carsten
-
I'm working on a website and a few minutes ago I got very tired from the Internet Explorer vertical scrollbar. This vertical scrollbar is always there, even if the length of the page does not require a vertical scrollbar. In this case, Internet Explorer will disable the scrollbar though not remove it. In my opinion this would be correct behaviour. The disabled however not hidden scrollbar means that a switch between a preview of your website in Mozilla Firefox and MS Internet Explorer will lead to an annoying change of the location of your layout. To disable this annoying switch and to hide the vertical scrollbar when the scrollbar is disabled anyway, put the following CSS code in your stylesheet: html { overflow: auto;}If you don't have a stylesheet yet, put this code in your html header:<style type="text/css">html { overflow: auto;}</style> Not much code needed, huh
-
Roll-over Image Links With Css No preloading of images
Carsten replied to theRealSheep's topic in General Discussion
This method is indeed very useful and much better then a javascript image replacement.I also used this method on several projects, though I never use tables for menu's but lists. It takes a minute to get used to lists but I recommend it to everyone. You can find many useful resources on lists also, and they are very easy to use in combination with different border behaviour. -
Unfortunately you might need to include more headers other then the From header if you want to send e-mail to big free e-mail providers like Hotmail. The mail() function has the syntax of mail($to, $subject, $content, $headers). To add some more required headers, just add a comma after $content and add a variable $headers. Then, fill the variable $headers with something like this: $headers = "MIME-Version: 1.0\n"; // don't change$headers .= "Content-type: text/html; charset=iso-8859-1\n"; // don't change$headers .= "X-Priority: 1\n"; // don't change$headers .= "X-MSMail-Priority: High\n"; // don't change$headers .= "X-Mailer: php\n"; // change php in what you like$headers .= "From: \"" . $from . "\" <" . $email . ">\n";$headers .= "Reply-To: \"". $from ."\" <". $email .">\n";Now you don't even have to copy/paste the users e-mail adress, you can directly click reply and send them an e-mail. To make it clear, replace mail('snlildude87@gmail.com', 'Someone Sent You Something!!!', $content); with mail('snlildude87@gmail.com', 'Someone Sent You Something!!!', $content, $headers); and put all the $headers in front of that.
-
You could ofcourse work with frames, but I do not encourage that. I prefer a system with a list of all the questions on the top of the page in an order that makes sense, maybe by category. The questions are then stated below again, with their corresponding answers. By making bookmark links at the location of the questions and answers by using the <a name="question1"> to <a name="questionX"> and then linking to these bookmarks with the following code:<a href="#question1" title="Question 1"> to <a href="#questionX" title="Question X"> it is very easy to navigate. To make it even more easy, include a bookmark link at the top of your faq page, at the top of the list of all your questions, for instance<a name="#top"> and include a "top" link (to #top) at every question and answer instance. An example of a similar frequently asked questions system (although it is called help in this instance) can be found at http://forums.xisto.com/no_longer_exists/, which also looks very decent.
-
If you really want to guess a number, you should use php's rand() function. Look at http://de1.php.net/rand for more information. For example, if you want someone to guess a random number between 1 and 20, replace $guess=14; with $guess=rand(1,20);. The new script would be: <form action="guess.php?action=yes" method="post"><input type="text" name="t_guess"><br><input type="submit" value="Guess"><?phpif($action == "yes"){//have the number that they are suppose to guess...$guess=rand(1,20);//endif($_POST['t_guess'] == $guess){print "Good job! Guess was right!";}else{print "Guess was wrong! Try again!";}}?>Note that I have made some replacements. method="guess.php?action=yes"with action="guess.php?action=yes" method="post"because method can only be post and action, and the target has to be set with action. I also replacedif($action == yes){with if($action == "yes"){because your code would return an error without single our double quotes. I also replacedif($t_guess == $guess){with if($_POST['t_guess'] == $guess){because now it checks for a post argument and arguments posted via the url, get arguments, aren't valid as input.
-
That is weird, I use divs for organizing pictures and information, search engines, games websites and a lot of other sites too! Nice tutorial though.
-
In addition to your tutorial and to make the markup code more valid, change <style> to <style type="text/css">. Average tutorial, you could explain more and go a little more indepth.
-
I'm studying at the University of Maastricht in The Netherlands, this is my first year in International Business. I have to choose my major next year, and I have no clue which course I should choose.
-
Note: save the file in notepad as ".htaccess" and make sure that it has no .txt file extension since the .htaccess file wouldn't be read then. Just upload the file to your /public_html or /www directory.
-
This might be a problem in the Apache configuration files. You could try solving your problem by creating a .htaccess file with a DirectoryIndex directive to your index.php file. To do this, just open notepad and paste the following code: DirectoryIndex index.php index.htmlThis line will make your index.php file the default index file, and if there is no index.php file Apache will look for an index.html file. You can add more filenames if you want to. If this doesn't work, try to create a new subdomain called www and point it to your /www or /public_html folder.
-
Could you show us some tekken 5 demo screenshots? I loved tekken 2 on my playstation 1, though I haven't played it for a very long time. Maybe this will get me interested in consoles again
-
I haven't seen it, I didn't bother due to the bad reviews and trailer. I heard from multiple sources it is a really bad movie, the worst the Wayans brothers ever made.You all seem to like the movie, though. Maybe the reviewer is bad or you have a different taste in movies.
-
If you select a custom font and put it in your stylesheet, only visitors who have the same font installed view your site with that font. You can however provide an alternative font, like this: font-family: HANA, Arial, "Times New Roman"; or whatever fonts you like. If you really want to display your website using the HANA font, you could use a technique called sIFR to do it. This technique uses javascript to replace text with flash, and everyone who has javascript and flash enabled will see your chosen font. You would have to make a custom flash file though, with the HANA font in it. See http://forums.xisto.com/no_longer_exists/ for the code and help on how to make your own font flash file.
-
Nice tutorial for newbees. I recommend http://www.dafont.com/de/ for over 4500 of free fonts. A little note though, if you want to add fonts from Winzip, Winrar or any other archive extracting program, remember to go to your fonts folder and refresh the folder (press F5) to install the fonts. Sometimes fonts don't work when you don't do this.
-
When I try to sell an item on the Armory page of the Army System, I get the following php error: Fatal error: Unsupported operand types in /home/Xisto/public_html/forums/sources/army/army.php on line 1116. It would be nice if I could sell my item anyway, and that this bug would be fixed. I don't know if it is a bug in the default installation of the Army System, or that an admin edited the army.php file, but I guess it could be fixed anyway. I changed your title and comment to be more descriptive
-
You should try to change your post variables. If you have <input type="text" name="comment" /> by default in your blog script, try to change comment to something else. A spam bot knows these posts variables, and can submit a form with values from this variables after it found your site. If you change the post variable, a bot wouldn't be able to post on your blog! I am sure that you can find some info about this on the Wordpress website or support forums.
-
I got 80. YEAH!111
-
Insert Into Database Radio Buttons and dropdown menus
Carsten replied to HmmZ's topic in Programming
Replace the first part of your red table rows with this: gender smallint(1) NOT NULL default,birthday smallint(2) NOT NULL default,birthmonth smallint(2) NOT NULL default,birthyear smallint(4) NOT NULL default,Also, I would recommend to remove your double quotes in there. if($_POST) checks whether or not a form has been submitted to your registration page. When you submit your form, an array is created called $_POST. This array contains all your form values, like $_POST['password']. extract($_POST) extracts all array keys as values. This means that $_POST['password'] becomes $password. -
Can You Stop People Saveing Your Web Pages?
Carsten replied to truman69's topic in Websites and Web Designing
Saving is the same as downloading which is the same as viewing, so no, there is no way to do that. However, you could restrict access to your mp3 files with a download script. -
This should do the job: elseif ($username == '' || $password == '' || $fullname == '' || $country == '' || $email == '') Why don't you check this online book on php programming called Practical PHP Programming.. It is free and I'm sure you could have found something on the syntax of the (else)if conditional statement. I've looked it up, check This chapter for more information.
-
Insert Into Database Radio Buttons and dropdown menus
Carsten replied to HmmZ's topic in Programming
I improved your reguser file. I am pretty sure it will worked, but I haven't checked. I don't have much time to go into detail about what I changed, but if you really feel you need more comment and after you looked at the php manual for it you can ask me. Anyway, This is the result: <?phpinclude "connect.php";if ($_POST){ extract($_POST); if ($password != $password2) { echo "Your Confirm Password didn't match the original Password"; } elseif ($email != $email2) { echo "Your Confirm Email didn't match the original Email"; } else { $password = md5($password); $sql = "INSERT INTO s_logintable (username, password, fullname, gender, birthday, birthmonth, birthyear, country, email) VALUES ('{$username}', '{$password}', '{$fullname}', '{$gender}', '{$birthday}', '{$birthmonth}', '{$birthyear}', '{$country}', '{$email}')"); if (mysql_query($sql)) { echo "Registration successful"; } else { echo "Something went wrong"; } }}?>The html for your dropdown box seems correct, it could need some cleaning though. Your radiobuttons part was also correct, though this is more valid:<input name="gender" type="radio" value="1" />Male<input name="gender" type="radio" value="2" />FemaleGood luck with your script! -
Changing A Dynamic Ip How to change your dynamic IP.
Carsten replied to yoofus's topic in General Discussion
I am not sure what the purpose of this tutorial is. If you want to change your dynamic ip and obtain a new one from your internet provider, you can do it much easier.You just have to type "ipconfig /release" and "ipconfig /renew". in the command screen. By default you would have the "Obtain an IP address automatically" option on. So, why would I change that option and use my old IP address instead, and then change it back immediately? Has it some other purpose? I don't get it -
Insert Into Database Radio Buttons and dropdown menus
Carsten replied to HmmZ's topic in Programming
First, what is the table field you want to put your birthday data in? I suppose it is birthDAY (why the uppercases in day?). The variable where the birthday is stored also is named $birthDAY, because birthDAY is the name of the <select> form element. To get a working piece of MySQL code, change your $SQL = "INSERT INTO go_logintable (birthDAY) VALUES ('{$birthDAY}')"; -
If you want to delete something from your database, use the following MySQL query:[/code]mysql_query("DELETE FROM businesses WHERE business='{$_POST['business_name']}'")