pleek
-
Posts
135 -
Joined
-
Last visited
Posts posted by pleek
-
-
ok so im learning php and ive been following the code in the book im learning bye. but im havin a problem. The script username and password protects a page. The loggin script works fine after some debugging but when it loads the password protected page i get this error
Parse error: parse error, unexpected T_IF in /homepages/10/d210379154/htdocs/dsc045748853/movie1.php on line 11
I fixed a few things that weren't the same as the book but i still get the same error. I don't know whats wrong so hopefully some one here can help me.
Here is the script of the page that im getting the error. I marked line 11 with a comment
<?php session_start(); //gets the username and password from form $_SESSION['username']=$_POST['user']; $_SESSION['userpass']=$_POST['pass']; $_SESSION['authuser']=0 //Check username and password information //this is line 11\/ 12 without the comment if (($_SESSION['username']== 'Pleek') AND ($_SESSION['userpass']== 'lucky1')) { $_SESSION['authuser']=1 } else { echo "You have not entered the correct username and password"; exit() } ?> <HTML> <HEAD> <TITLE>Movie</TITLE> <HEAD> <BODY> <?php $myfavmovie=urlencode("National Treasure"); echo "<a href="http://craigh.tlcrepair.net/movieset.php?favmovie=$myfavmovie'>" echo "Click here to see information about my favorite movie!"; echo "</a>"; ?> </BODY> </HTML>
WHATS WRONG???
-
Hello everybody
If im loading another site in a frame is there any way that i can block from showing if i know the file path to the file that is showing? Like say another frame of a video or a picture. So i can only show the useful parts of the site???
(kind of how Adblock works with firefox but not only for photos)
Thanx in advance
-
ok thanks alot. And by the way i got the delay on the hide() function working.
PEACE OUT!!!
-
so ur sayin that if i just position a div like this
<div id="div id" "position: absolute; left:number; top:number;"> <table> <tr> <td> <img src="path to file.gif"> </td> <td> <p>discription</p> </td> </tr> </table>
then call the javascript function like normal??
-
hello everybody,
ok i have recently started a website but im running into some probs. My homepage is www.craigh.tlcrepair.net
everything i have wanted to do so far i have been able to (or learn how to do) except my vid main page.
http://craigh.tlcrepair.net/pages/video.html
i want the description <iframe> to show up when the user puts the mouse over the name, and hide again after 2 seconds of the mouse being moved
<head> <script type="text/javascript"> function hide1() { num1.style.visibility="hidden"; } function show1() { num1.style.visibility="visible"; } </head> <body> <p><a href="pagename.html" onmouseover="show()" onmouseout="hide()">number1</a></p> </body>
Ok, this script works pretty much perfectly but i have a couple problems.
First, when u mouse over the second name http://craigh.tlcrepair.net/pages/video.html the second and third iframes both show. Once u mouseout they both "hide" and then the whole script works fine. Whats wrong?
Second i'd like to compact the script with var so that i don't have to write the same script 10 times with just a different id for the iframe.
I know how to set a "set time out" to delay the hiding of the frame so i don't really think i need help with that but the other part is stumping me.
Can anybody help me out here?
-
wow
thanks alot for the help
so just so i get this strait "\" is used in file paths "/" is used for nav in websites right?
-
I checked out your home page and it all loaded and resized fast enough that i didn't notice it. I don't think its really a problem unless u know that most of your users use dialup.
-
wouldn't u just use
style="width: number; height: number"
substitute "number" for the width and height u want.
(style="width: 25px; height: 25px" for pixles)
by setting this to something larger that what it is ever been the extra will be cut off automatically.
-
ok this is my first post on this site. I just got recomended to it today and i hope u can solve my problem.
I uploaded my website today using filezilla, and every thing worked execpt the links in my menu bar
I got the home button to work by just putting in the url for the page. but the video page still won't work. I tryed changing the href to just "href="pages\video.html" but it changes it to "C:\Documents and Settings\User\Desktop\WEB\pages\video.html" and then doesn't work when i upload it.
the path file from the index.html page is "pages\video.html" as seen in the pics.
any help would be apreciated.
Thanxs
[SOLVED] PHP code help
in PHP Coding Help
Posted
Thanxs alot guys the scripted is now completely working and ready to be modified for my needs.
I found two more error besides the ones you pointed out and i figured them out myself.