
The_Assistant
Members-
Posts
23 -
Joined
-
Last visited
Never
Everything posted by The_Assistant
-
just use the mail function: http://au2.php.net/manual/en/function.mail.php. so try: mail("[email protected]", $subject, $message, "From: ".$from_email);
-
As skali said it's not a problem with your code. Whenever a user looks at your website the server automatically generates an id number used to identify this session. With some setups the session id is passed from page to page by adding it to the end of your URL. Some scripts (such as IPB) make use of this feature when generating their own session id's so you can actually use it for some good on your site. Otherwise just ignore it, it doesn't hurt. And yes, sessions will still work fine if you add skali's code.
-
you could also use addslashes on $lyric $lyric = addslashes($lyric); $sql = "INSERT INTO `$table` VALUES ('$pc', '$pBy', '$email', '$lyric', '$song', '$artist', '$date','','')"; mysql_query($sql);
-
$str = 'Joe Bloggs 2345 Pleasant Road Auckland New Zealand'; $str = nl2br($str);
-
echo '<input name="number" type="text" class="text" value="{$row['number']}" size="15"/>';
-
try holding the shift key down while you click on the refresh button. that fully reloads the page instead of straight out of the cache.
-
it is a likely source of the problem. try removing the 1st forward slash from the string, making it $Filename = "team/uploads/".$FileLoc; also try giving the folder full read write permissions. on a windows system by default this should already be set but make sure that it is set as 777. same goes for unix systems. you should be able do this through your FTP program
-
see if you can get some code that checks to see if cookies are enabled and if not then use a javascript alert of something similar to ask the user to enable cookies
-
meta refresh after login not working
The_Assistant replied to c_shelswell's topic in PHP Coding Help
can we have full code to cross reference? and a test username and password would be helpful. -
ProjectFear sure knows his stuff.
-
it doesn't have to be written like that at all. it just needs to have a space between include and the filename
-
session id's are generated every time a user visits a site but if the server goes down then the session is reset so there is no way that i know of to recover a session let alone detect it.
-
What does this mean - www.example.com/index.php?a=bc
The_Assistant replied to forumnz's topic in PHP Coding Help
it can be a tad buggy if you just print it straight away. i've noticed older versions of php going a bit crazy over that. use $_GET['variable_name'] if you can. -
meta refresh after login not working
The_Assistant replied to c_shelswell's topic in PHP Coding Help
can we have a link to check the error? -
ProjectFear's script should do the trick. Thats pretty much how i do my logins when i need to code one.
-
it should be alright in the same directory. just make sure you keep existing directory structures when you upload the files. if you do decide you want to put the files in different directories then just change the locations in your scripts.
-
theres another error in that code. change it to $id = $_GET["id"];
-
you have a lil error in there <?php number = rand(); ?> should be <?php $number = rand(); ?>
-
Try this instead: contact.php <?php $q4_alias = $_POST['q4_alias']; $Xfire = $_POST['Xfire']; $email = $_POST['email']; $message = stripslashes($message); $sendTo = "[email protected]"; $subject = "Registration Form"; $msg_body = "q4_alias: $q4_alias\n"; $msg_body .= "Xfire: $Xfire\n"; $msg_body .= "email: $email\n"; $header_info = "From: ".$name." <".$email.">"; mail($sendTo, $subject, $msg_body, $header_info); ?>
-
Try this: for($i=0;$i<mysql_num_rows($runquery);$i++) { echo '<img src="'.mysql_resul($runquery,$i,'pic_link').'" />'; }
-
The page doesn't even really make use of the form. The id is passed along in the URL. spfoonnewb's code is how it should be done
-
you could use a form on your home page <form action="search.php" method="POST"> Search String: <input type="text" name="search" value="<I>Type search here...</I>"> <input type="Submit" value="search"> </form>