| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | ||
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2018 
				Location: New Orleans, Louisiana. / Newcastle, England. 
				
				
					Posts: 1,225
				 
				
				
				
				 | 
	
	
	
	
		
			
			 How would I go about changing my submission.php coding so that when someone sends info across to the database, it also sends me an email to let me know? 
		
	
		
		
		
		
		
	
	This is my submission.php file contents presently: Quote: 
	
 Quote: 
	
  | 
||
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Apr 2019 
				
				
				
					Posts: 657
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Whatever you do, don't spend five seconds trying it before asking here. That would be crazy. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	__________________  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2018 
				Location: New Orleans, Louisiana. / Newcastle, England. 
				
				
					Posts: 1,225
				 
				
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Apr 2019 
				
				
				
					Posts: 657
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Have you have tested your email form so you know it definitely works? Some servers may block it, and some email providers may not accept such email. If it works - that is you submit a form and receive an email - there should be no issue with using the mail function when people submit data. 
		
	
		
		
		
		
			BTW you don't need all that header shit on an email. You need To, Subject, Message, From. For example this is probably enough to test with (obviously with real email addresses), after or before your "records added successfully" line: mail("me@myhouse","Hello","How are you","From: you@yourhouse"); Edit: since newlines may be necessary, even with one line of headers (from): mail("me@myhouse","Hello","How are you","From: you@yourhouse\r\n"); 
				__________________ 
		
		
		
		
	
	__________________  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 see you later, I'm gone 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2002 
				
				
				
					Posts: 14,127
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I would do it inside the if checking results from the query. 
		
	
		
		
		
		
			if(mysqli_query($link, $sql)){ echo "Records added successfully."; // ...............Do the email shit right here................ $emailsubj="subject of my email"; $emailsendaddress="[email protected]"; $emailaddy2use="address I am sending to"; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/plain; charset=iso-8859-1\r\n"; $headers .="From: " . $emailsendaddress . "\r\n"; mail ( $emailaddy2use, $emailsubj, $emailmessage, $headers); } 
				__________________ 
		
		
		
		
	
	All cookies cleared!  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 see you later, I'm gone 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2002 
				
				
				
					Posts: 14,127
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Never mind... 
		
	
		
		
		
		
			. 
				__________________ 
		
		
		
		
	
	All cookies cleared!  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#7 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Apr 2019 
				
				
				
					Posts: 657
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Whatever you do, don't spend five seconds reading a four post thread before repeating what's in it. That would be crazy. 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	__________________  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#8 | |
| 
			
			
			
			 see you later, I'm gone 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2002 
				
				
				
					Posts: 14,127
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 . 
				__________________ 
		
		
		
		
	
	All cookies cleared!  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#9 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Apr 2019 
				
				
				
					Posts: 657
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I said: 
		
	
		
		
		
		
			Whatever you do, don't spend five seconds reading a four post thread before repeating what's in it. That would be crazy. Do you get paid per sig view? 
				__________________ 
		
		
		
		
	
	__________________  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#10 | |
| 
			
			
			
			 see you later, I'm gone 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2002 
				
				
				
					Posts: 14,127
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 Where, in the posts before mine, do you tell him that you would move the email send into the if statement testing the query, or anything like that. Dude asked: How would I go about changing my submission.php coding so that when someone sends info across to the database, it also sends me an email to let me know? And later said: I'm asking if there is another option to just appending and showing what I already tried. I gave him another option, moving it into the if statement after the query rather than doing another if. So, where the fuck did I repeat everything that is already in the thread? The email shit, I just pasted that in there to demonstrate where I would drop it in. Now, you have a problem with me? I suggest you ignore me. Oh, yeah. Go Fuck Yourself, asshole. , 
				__________________ 
		
		
		
		
	
	All cookies cleared!  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#11 | 
| 
			
			
			
			 see you later, I'm gone 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2002 
				
				
				
					Posts: 14,127
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Ok, I just saw that when I looked really hard, I had gone past it earlier because it was combined in with another idea. 
		
	
		
		
		
		
			Sorry about that. Still, fuck you for being an asshole about it. . 
				__________________ 
		
		
		
		
	
	All cookies cleared!  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#12 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2018 
				Location: New Orleans, Louisiana. / Newcastle, England. 
				
				
					Posts: 1,225
				 
				
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#13 | |
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2018 
				Location: New Orleans, Louisiana. / Newcastle, England. 
				
				
					Posts: 1,225
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
 Thank you.  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#14 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Industry Role:  
				Join Date: Oct 2018 
				Location: New Orleans, Louisiana. / Newcastle, England. 
				
				
					Posts: 1,225
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Moving it to that position worked great and I even managed to add a html template page to the bottom of the code so it matches the rest of the site layout. 
		
	
		
		
		
		
		
	
	Thank you both for the assistance Next on my list if the CRUD system which is almost done I just need to add a few stylesheets  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#15 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Apr 2019 
				
				
				
					Posts: 657
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 I'm an asshole for making a jokey callback to something I posted to the OP (who unlike you didn't have a total meltdown about it) because reading a four post thread before posting to it is "really hard" for you? 
		
	
		
		
		
		
			
				__________________ 
		
		
		
		
	
	__________________  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |