What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Why isnt this working?

Why isnt this working?
Author: Message:
Eddie
Veteran Member
*****


Posts: 2078
Reputation: 30
32 / Male / Flag
Joined: Oct 2005
Status: Away
O.P. Why isnt this working?
This form doesnt seem to be sending stuff on my website :( here is the php..
code:
<?php
// get posted data into local variables
$EmailFrom = Trim(stripslashes($_POST['EmailFrom']));
$EmailTo = "haboz_jobs@hotmil.com";
$Subject = "Job Application";
$Position = Trim(stripslashes($_POST['Position']));
$HabboName = Trim(stripslashes($_POST['HabboName']));
$Name = Trim(stripslashes($_POST['Name']));
$Title = Trim(stripslashes($_POST['Title']));
$Report = Trim(stripslashes($_POST['Report']));
$Ip = $_SERVER[REMOTE_ADDR];

// prepare email body text
$Body = "";
$Body .= "Habbo Name: ";
$Body .= $HabboName;
$Body .= "\n";
$Body .= "Position: ";
$Body .= $Position;
$Body .= "\n";
$Body .= "IP: ";
$Body .= $Ip;
$Body .= "\n";
$Body .= "Title: ";
$Body .= $Title;
$Body .= "\n";
$Body .= "Report: ";
$Body .= $Report;
$Body .= "\n";

// send email
$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>");
// redirect to success page
if ($success){
  header('Location: http://www.haboz.net/index.php?page=job_apps_ok');
exit();
}
else{
  header('Location: http://www.haboz.net/index.php?page=job_apps_error');
exit();
}

?>

Heres the code on the page with the form...

code:
<form method="POST" action="pages/php/job_apps.php">
            <label></label>
            <p>*Position: <br>
            <select name="Position">
            <option selected="selected">Select...</option>
            <option>Journalist</option>
            <option>Guide Writer</option>
            <option>Events Host</option>
            </select>
            <p>*Your E-Mail: <br />
            <label>
            <input type="text" name="EmailFrom">
            </label>
            <p>*Habbo Name: <br />
            <input type="text" name="HabboName">
            <p>*Report Title, Guide Title or Event Name: <br />
            <input type="text" name="Title">         
            <p>*The Report, Short Guide Example, Event Description: <br />
            <label>
            <textarea name="Report" cols="60" rows="4" wrap="physical"></textarea>
            </label>
            <p><input type="submit" name="submit" value="Submit">
            <input name="Reset" type="reset" id="Reset" value="Reset">
            </form>

Help would be appreciated :)

This post was edited on 07-12-2007 at 11:36 AM by Eddie.
...there used to be a signature here :)
07-12-2007 11:32 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Why isnt this working? - by Eddie on 07-12-2007 at 11:32 AM
RE: Why isnt this working? - by Ezra on 07-12-2007 at 11:50 AM
RE: Why isnt this working? - by Eddie on 07-12-2007 at 11:53 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On