emopoops
-
Posts
342 -
Joined
-
Last visited
Never
Posts posted by emopoops
-
-
ok thanks you. that is something i needed to know. ok but this is what i have so far regarding the headers. how do i exactly incorporate it into what i have already?
$headers = 'From: noreply@socialemo.com' . "\r\n" . 'Reply-To: noreply@socialemo.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers);
-
THEN DO IT THE WAY I FIRST POSTED NICK!
-
im using the php mail() function to send an email and i got the email. except its formatted wrong like it looks like this:
<table bgcolor="black"><tr bgcolor="#111111"><td bgcolor="#222222" width="60%"
etc.. u get it right?
i use gmail. now ive had images sent in mails to me. so why is this not working? i havent tested images but i figure that if table doesnt work img wont either. whats going on? is there a workaround? or is this what all mail sent by php mail() is bound to look like.
i have free hosting atm. or is it the hosting?
im clueless halp?!
-
the time function is wayyy easier. the op should use the time() function instead and this will be solved in a snap!
-
no its easier to just take the seconds by adding this line:
$seconds = date('s', $etime); echo $seconds;
or something like that i think the s takes the seconds. since etime variable is the differece wouldnt the seconds be the same?
but your posts seem like u did WAYYY too much coding. for the simple task see:
http://php.net/manual/en/function.time.php
u probably dont have to even do the for() or whatever. i dont understand what u are doing there. the time() function seems like it can solve this problem with less code.. when combined with the date()
the example 1 on the page explains what i mean.
-
well i did ti that way cause i already had a thing to show if the user is validated. and it works fine i dont understand the post variable thing tho.
-
i made a registration script right and it makes the user a directory and an indexfile so they can have their own profile. so does anyone have any info on how to fwrite and entire php page?
cause i need it for making user profiles to be at socialemo.com/username
like myspace.
but i dont know how to fwrite anything other than ":hy this us yo profile fool"
seriously guys i need some helpo techguy isn answering either is dreamin code.
please help just some info maybe a link would be greatly appreciated .
i want u to all know im not asking for a script here im just asking for help with how to do this. fwrite thing/ as i stated above i already have it to make the directory and the page and write hey this is your profile kind of thing but i need to create a whole page not just text. it has to be index.php not .txt and it has to be able to have some PHP in it as well...
because the page cant be accessable to anyone until they are logged in and i have to use require to require another page. i will also need to fwrite this profile page to have an included stylesheet. please help me with fwrite!
-
i made a login script with the ability to acess the members only page if ur logged in correctly (the session set to true)
now when i go to my singout page which has this code
i can still acess my members only page and am still signed in?
how do i sign out?
<? session_start(); session_destroy(); ?>
isnt working
-
because ive looked at all the tutorials and they dont make sense. im not asking anyone to write the scripot for me im just tying to understand.ive asked numerous forums got no response please helps?
the big thing is that i have a registration script that enters the users data into the mysql table before they are verified (the registration script sends them an email with an activation link)
i dont want the inverified people to be able to login just because they are already in the database.... u know
anyone help me atleast on how to check if they are verfied please???
in the mysql members table is changes a feild to verified from "unverified" when the link is clicked on.
help?
-
yeah yeah yeah yeah i probbaly look like an idiot but well i forgot to add the ")" after the password. cause on the website link it had that wring in the first part of the code too! RAWRRRRR SORREE!!!!!!!!!!!!!
-
<? if ($_POST['form_submitted'] == '1') { ## Form submitted, user registering! } else{ ## No value found, user activating account! } mysql_connect("localhost", databas name, passs or die(mysql_error())[color=red];[/color] mysql_select_db("tablename") or die(mysql_error()); if ($_POST['form_submitted'] == '1') { } else { } ?>
of course i make it so the info is correct like my database name and stuff but
this is how i got it from this website : http://www.learnphponline.com/scripts/email-activation-for-php-forms
and everytime i do that it says stupid unexpected ";" in line 11 which is the thing i colored red.
then when i take the ";" out it says unexpected t_string in line 13 or something i thought that the ";" was supposed to be there anyways.
and i should let you know that i accidentally put a ";" on line 11 (an extra one cause its there in the first part of the script on that webiste link i gave) and thats what started it. then ii took out the ";" that is supposed to be there. and the error doesnt go away it becomes tstring error. i dont know what to do. when i took out the one that isnt supposed to be in the code it gave me the unexpected ";" error. then i took out the one i made in red as well it gave me the same thing. i dont know what to do.
-
i cant figure out what to do to make a registration script effect multiple or all directories of my site. please help
-
dude i was actually just looking at one. ive been googling this all freaking day.
i dont think a mysql tutorial that i will find is capable of what im askin here.
thats why im asking
-
HOW DO I GET THIS REGISTRATION SCRIPT (YOU KNOW LIKE PROFILES, LOGIN LOGOUT ECT...)
HOW DO I GET THIS SCRIPT TO WORK FOR ALL THE DIRECTORIES OF MY SITE.
SO YOU CANT VIEW ANY PAGES ON MY SITE UNLESS U HAVE REGISTERED AND LOGGED IN. I DONT KNOW HOW TO GET IT THAT WAY
i have a site socialemo.com that has one directory that u have to login to see/access but i want all directories. how do i do that? please helpme php freak i havent gotten any replies at my post at techguy.org and i dont know where else to ask please please please help me please.... i dont know how. using mysql right and php? but how
Please Help my PHP Dating Function.
in PHP Coding Help
Posted
im not /facepalm. why would anyone use unix timestamp? thats rediculous! use the time() function and it will work perfectly!