is it possible to display that on a .html file?
Printable View
In regards to my earlier post. This could be the error? Seen as though some of the provided solutions would work.Quote:
The mail() function doesn't support SMTP authentication, so most mail servers will reject mail from sources they don't recognize.
The php mail function itself is just a pain.
-----------------------------------------------
At the post above, it is possible to display it in the same document. Make sure it's saved as a .php file, put the php code in between the <head> </head> tags. Then put your form in the <body> </body> tags.
That's what i do anyway, although I've just started learning PHP. Done like a login, register, members area and admin panel in a day. Super easy to learn, especially when I usually have to do Java.
This might be getting too hard but is there anyway you can put a check box next to each name and you can tick it and click delete and it removes it from the html file. Thats the last think i'd need doing :)
also:
Warning file_put_contents(./admin.html) [function.file-put-contents]: failed to open stream: Permission denied in /opt/lampp/htdocs/join/write.php on line 6
That so confused me on what you're trying to do :P
If I wanted the names storing I would use an SQL database upon clicking submit or send or w.e it stores the name. Then have an additional button maybe in the admin panel to delete records from that table. Or you could just delete records manually in phpmyadmin.
That's more than likely not what you wanted to do but hey ho. I think this is getting way too overcomplicated for a simple mail function :P
I don't get it ! I have the same problem !
---------- Post added 13-11-2011 at 08:39 PM ----------
www.habbtunez.com/jobs/ It doesnt send !
<?php
$to = "jobs[@]@habbtunez.com"[/@]; // The email address to send the message to.
$body ="Message here " . $_POST['textboxname']; //The body of our message. Separate lines with "\n".
$body =wordwrap($body,70); // 70 Chars per line
$subject = "Job Application"; //The subject of our message.
mail($to, $subject, $body); //Send the message
?>