jscix
-
Posts
197 -
Joined
-
Last visited
Never
Posts posted by jscix
-
-
place the code inside of a external file. whatever.php... then simply link to the file instead of using the code imbedded in the a href
-
Assuming you've already connected to the database and everything?
Then you should first:
$filteredemail = htmlspecialchars($_GET['email']);
// Check if the email is valid
then
$newsletters = mysql_query("INSERT INTO `newsletter.email` VALUES '" . $filteredemail . "'") or die("Unable to add entry");
-
You could use sessions obviously like frost said, or you could just add a get variable into the url
echo('<a href="?c=' . $c = $c + 10 . '&post_value_identifier=post_values_you_want_to_keep>Next</a>');
$keptmypostvalue = ($_GET['post_value_identifier']);
-
Thanks for the replies everyone, Someone fixed it for me.. man oh man, I need to do alot more reading on css.
???
-
Okay. First off thanks for any help in advance.
My problems are:
1. I'm a CSS Noob.
2. My CSS only displays properly on Firefox (Windows) and not on IE (Windows) -- I haven't checked other browsers, yet.
3. When I resize the brower, the navigation will drop down a line, outside of the background box they are inbedded in.
Questions:
1. Does anyone know what I need to do, to make this display on internet explorer, as it does on mozilla?
2. How do I fix this so that; when the browser is resized the navigation links, do not move?
You can see the page at: http://www.novascene.net/layout.php (CSS is not in an external file.)
Also my source is as follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Novascene.net</title> <link rel="shortcut icon" href="music.png" type="image/x-icon" /> <style type="text/css" media="screen"><!-- body { font-size: 11px; font-family: Verdana, Arial, SunSans-Regular, Sans-Serif; color:black; padding:0px; margin:0px; } a {color: blue;} a:visited {color:blue;} a:hover {color: blue;} a:active { color:blue;} #nav { display: block; width: 100%; height: 15px; background-color: #C0C0C0; } navlink { display: inline; width: 80px; height; 15px; background-color: #C0C0C0; border: 1px solid black; } navlink:hover { background-color: #C0C2C1; border: 1px dashed #000000 ; color: #000000; } </style> <html> <body> <img src="nvscene2.gif"><br> <div id="nav"> <font style="margin-left: 100px;"><a href="#test"><navlink>Test Link1</a></navlink></font> <a href="#test"><navlink>Test Link2</a></navlink></font> <a href="#test"><navlink>Test Link3</a></navlink></font> <a href="#test"><navlink>Test Link4</a></navlink></font> </div> <br><br> hi </body> </html>
I would greatly appreciate ANY help. Thanks much.
-
I don't see a problem with your code. so, if the directory has the correct settings and it still doesnt work, try writing a small script to chmod some random file. Does that work?
Found this on php.net:
"Note:
The current user is the user under which PHP runs. It is probably not the same user you use for normal shell or FTP access. The mode can be changed only by user who owns the file on most systems."
-
What are the permissions for the folder your uploading TO ?
-
$arr = explode("," , $yourstring);
-
-
ah ok. no problem, glad ya got it. I'm curious why you couldn't print $iTunes->CurrentTrack Though..
It seems to just be an array. /shrug I'll look it up.
-
What happens when you run this;
print ($iTunes->CurrentTrack);
-
To be honest, I haven't coded anything like that,(OOP) yet.
But I can help you figure it out. Which line is #18?
-
I'm not positive what is causing your error; but I found this on php.net :::::::::::
As of (at least) PHP 5.2, you can no longer convert an object to a string unless it has a __toString method. Converting an object without this method now gives the error:
PHP Catchable fatal error: Object of class <classname> could not be converted to string in <file> on line <line>
Try this code to get the same results as before:
<?php
if (!is_object($value) || method_exists($value, '__toString')) {
$string = (string)$value;
} else {
$string = 'Object';
}
?>
---------
Hope that helps.
-
which line is. # 18?
-
Try using an absolute path for $filename
-
if (file_exists($image)) {
echo "<i m g s r c = \"fdfdsf.img\">";
} else {
echo "< i m g s r c = \"default.img\">";
}
basically..
-
A file located on the webserver, or are you uploading and displaying a temporary file?
-
$_SERVER['HTTP_HOST']
to be exact.
-
I believe the $_SERVER array should have your url, from there just some simple parsing and then redirect w/ the code spook gave you.
-
The issue seems to be in the fgets loop, It hangs up for a decent time (i'd say 30-40 seconds), then sucessfully ends but the variable will contain no data.
I've tried the same loop, on an FTP port on my server and it sucessfully retreives data.. so i'm not positive what the problem is... Anyone see the problem or have some suggestions??
$wserver = "rs.internic.net"; $domainn = "testwhatever.com"; $cwhois = @fsockopen("udp://" . $wserver, 43, $errn, $errstr, 30) or die("$errn - $errstr"); print "connected<br>"; fputs($cwhois, $domainn . "\r\n") or die("error sending request"); print "sent request<br>"; while (!feof($cwhois)) { $result .= fgets($cwhois, 200); } fclose($cwhois); print "closed connection<br>"; if (eregi("No match for", $result)) { print "available"; } else { print "taken"; }
-
Doh, I was using http://
Thanks alot, that resolved the issue....
-
$who_is = fsockopen($server, 43, $errn,$errstr) or die ("$errn - $errstr");
It simply keeps timing out, I don't know what the issue is, I can connect with telnet just fine.. Anyone? ???
-
Also, I recomend adding a logging feature, for failed includes. Normally people try multiple things before succeeding .. so you will at least have a log of your attacker.
-
You can make sure the file ext. trying to be included is .php, and you can make sure the file trying to be included is within a specific folder. This should make it a bit more secure also.
[SOLVED] Link question
in PHP Coding Help
Posted
and it's because the php processor isnt reading the HTML. the php processor begins when it sees <?php.....
it performs the action reguardless of what the html surrounding it does..