-
Posts
2,965 -
Joined
-
Last visited
Everything posted by mikesta707
-
Is there a website out there that allows low traffic sites to come together and let related sites put each others links on each others websites to increase SE rank, and traffic? On a side note, if there isn't, any music related web designers want to swap links?
-
array('rar', 'not sure what goes here', 'not sure what goes here'); shouldnt that work? you just have to figure out what goes in the 2nd and 3rd values... which shouldnt be too hard
-
any opinions?
-
maybe your actual mail.php code tries to add to the database, but the code you posted does nothing concerning inserting data into databases... try posting your actual mail.php code so i can look at it
-
PHP + Sending emails...Very new and wondering how its done.
mikesta707 replied to eva21's topic in PHP Coding Help
no that would use your gmail account to send whoever you want an email. it would be from your gmail account, instead of being from your server -
ooooooh I see. Wow I always wondered why that fixed the error I came across a long time ago... I never realized it never did. Well ill make sure to avoid that from now on
-
PHP + Sending emails...Very new and wondering how its done.
mikesta707 replied to eva21's topic in PHP Coding Help
Oh sorry didnt realize it was a wamp server. yeah mail probably wont work then -
ok... first things <body> <?php If (isset($_POST['yourfan'])) { $to = $row_Bus['Email']; $subject = 'You Have A Fan !'; $body = "blah...blah...blah.... "; $headers = "From: admin@mysite.com\r\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1 \n"; $mail_sent = @mail( $to, $subject, $body, $headers ); } ?>;MM_popupMsg('It\'s official! You are now a fan.')" src="/FANBUT2.png" alt="Become A Fan"/> </label> <input type="hidden" name="MM_insert" value="fan" /> get rid of the stuff after the PHP... i dont even understand why it would still be there... based on what you have on your form page your mail page should be something like If (isset($_POST['yourfan'])) { $to = $_POST['BusEmail'];//or whatever the post variable which holds the target email $subject = 'You Have A Fan !'; $body = "blah...blah...blah.... "; $headers = "From: admin@mysite.com\r\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-type: text/html; charset=iso-8859-1 \n"; $mail_sent = @mail( $to, $subject, $body, $headers ); } ?> As far as the action... i dont even understand where the variable you are using is coming from. I would really suggest you learn a lot more about PHP before continuing with this project, as from what i've seen it doesnt seem like you understand it very well (no offense) let me know if that helps. I hope it does
-
PHP + Sending emails...Very new and wondering how its done.
mikesta707 replied to eva21's topic in PHP Coding Help
i think it should already be installed... Just try to write a simple script and see if it works. I didn't need to install anything special on my server to use the mail function -
I have used the @ and seen it a bunch of times. I use it quite often for certain functions actually, but I just don't understand what it does. ANyone care to explain it?
-
well it wouldnt redirect you to the members page unless there was a command to do so. Is there a redirect somewhere in that script that you havent included?
-
PHP + Sending emails...Very new and wondering how its done.
mikesta707 replied to eva21's topic in PHP Coding Help
http://www.w3schools.com/PHP/php_mail.asp view that for a guide on how the php mail function works. its actually very easy. as long as you understand post variables, you can make what you want fairly easily -
post mail.php, and please use the code tags. as far as it going to a page that doesnt exist... post the page with the html forms also.
-
it also returns it. nah thats wrong. i think premiso is right. you may be having a problem with mysql's md5 function. Try using php's md5 function, and then just insert the info with mysql
-
Ah yes the blockquote. forgot about that. EDIT: KK I took out the blockquote. Thank you very much for your Advice!!! But you still don't like the header pic? I love the pick of the girl, especially the left one lol. If you have a better pic recommendation, let me know! and do both of them look skewed? I know that the one on the right does, but the picture was pretty much like that to begin with.
-
how is that?
-
try echoing the query before you execute it. Or try md5'ing the password string before you pass it into the sql. I did a very similar script to yours, and mine worked fine. THe only real difference is that I md5'ed the password before storing it
-
any new opinions?
-
show us the code that sends the email, and the code the creates the password
-
which line is line 51 in the code you posted. Im not going to count them by hand
-
Does anyone know of any sites with a facebook application development tutorial. Im trying to compile a bunch and put them on a website of mine, so that people have a resource with a bunch of related understandable tutorials on the same site (Something the documentation wiki is severely lacking) Also, if anyone is interested in writing some, I would be extremely happy
-
this seems like it should work... try md5ing the variable before you pass in into the mysql maybe?? $dbpass = md5($dbpass); $query = "select * from student where StudentUsername ='".$dbuser."' and StudentPassword = '".$dbpass."'"; maybe something like that?
-
Ok I changed a lot of stuff. I pretty much followed the advice of Axeia. Any other opinions? Also opinions specifically on the content itself (IE does it have good info, or does it suck) would be helpful! Thanks in advanced
-
Ahh great advice! thanks! So change the dl's to ul's and dt's to li's. Got it. I'm gonna fix it now so I hope your still around to check it out again. Yeah your definitely right about the green text... gonna change that too. also thanks for the anime bass player chick! have actually been lookin for a better quality image. I hope your still around in a few minutes, gonna be lookin for some new advice after i fix a few things
-
[SOLVED] Having the Server Run a PHP Script
mikesta707 replied to mikesta707's topic in PHP Coding Help
awesome. Thanks everyone. I just implemented the Bump script, and it works perfectly. Gonna do some research on Cron Jobs now, but consider this topic solved