• Log in or sign up for an account here: https://www.sythe.org/login

[OT] Reported Post by BLEUSKITTLE

Status
Not open for further replies.
Joined
Apr 14, 2011
Sythe Gold
3,499
Messages
11,092
Two Factor Authentication User
SytheSteamer
Signature of the Month Participant
Sythe's 10th Anniversary
Christmas 2016
Christmas 2019
Easter 2016
Former OMM
In Memory of Jon
Member of the Month Winner
Pokémon Trainer
Poképedia
St. Patrick's Day 2018
Summer 2019
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Toast Wallet User
Verified Overwatch Diamond
BLEUSKITTLE has reported a post.

Reason:
the fuck is this shit?
he be diggin
Post: Web page project
Forum: Web Programming
Assigned Moderators: video, Jack Goff

Posted by: esWebos
Original Content:
http://tonybenwhite.byethost8.com/WSAWebpage/test.html

I've got most of the inner workings functioning as needed, but the PHP page I have set up with the following code doesn't actually send me any emails as intended... I checked and the free host I use DOES support PHP, so idk. Here's the code:
PHP:
<?php
	if(isset($_POST['send'])){
		$to_address="[email protected]";
		$subject="WSA Day of Action Entry";
		$firstname=$_POST['firstname'];
		$lastname=$_POST['lastname'];
		$email=$_POST['email'];
		$street1=$_POST['street1'];
		$street2=$_POST['street2'];
		$city=$_POST['city'];
		$state=$_POST['state'];
		$zip=$_POST['zip'];
		$initials=$_POST['initials'];
		$message="Name: " .$firstname." ".$lastname."\n";
		$message .="Email: " .$email."\n";
		$message .="Street: " .$street1."\n";
		$message .="Street: " .$street2."\n";
		$message .="City: " .$city."\n";
		$message .="State: " .$state."\n";
		$message .="Zip Code: " .$zip."\n";
		$message .="Initials: " .$initials."\n";
		$headers = 'From: '.$email."\r\n".
		$headers  = 'MIME-Version: 1.0' . "\r\n";
		$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
		'X-Mailer: PHP/' .phpversion();
		mail($to_address, $subject, $message, $headers);
		}
?><!DOCTYPE HTML>
 
<html>
<body>
Thank you!
</body>
</html>

Any idea on why?

What did you save your file type as (.html, .php, etc...)?
What PHP version are you running?
Did you notice that your formatting is incorrect?

Looks like you just wrote the function and didn't allow for an input. It would be easier to just use HTML5 for what your attempting to do... by building a simple form and using a "mailto:" function.
 
Sythe Awards 2016 Winner
Sythe Awards 2015 Winner
Sythe Awards 2014 Winner
Sythe Awards 2013 Winner
Former OMM
Detective
STEVE
In Memory of Jon
Poker Chip
Pokémon Trainer
Some like it hot
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top