Add to Google

How do I get this data automatically posted to my email?

free web hosting
Open Discussion > Have your say > General Talk

How do I get this data automatically posted to my email?

abajan
After lots of work searching the 'Net and applying what I've learnt, I have been able to create a form that displays the data submitted by the user (preserving linebreaks and surpressing the display of escape backslashes when apostrophies and double-quotes are typed into the textarea field) so that the user can retain the information for future reference.

What I want to know is if there's a script (PHP or otherwise) that I can use to get that information automatically posted to my email address? I already know how to get form data posted to my email address (by putting action="mailto:myemail@wherever.com" page. But that's a whole other story.)

Is it possible to have more than one value assigned to the "action" attribute (or any attribute for that matter)?

To more fully understand my dilemma, please feel free to use my form at http://learnphp.workshop.xedhost.com/onefile.php as much as you like. (Within reason, of course!)

That site is just used for my personal testing purposes, so some of the links will not work as expected. Just use the form itself.


Thanks. smile.gif




P.S. There are other things that need working on in that form, like forcing the user to submit required fields etc. but the most pressing issue is the one I've alluded to.

 

 

 


Comment/Reply (w/o sign-up)

101
Pretty simple if your host allows the use of PHP's mail() function. Try something like:

<?php

mail( "example@example.com", "subject", "the message here");

?>

If that works you can adapt it to handle the data submitted through your form.

Comment/Reply (w/o sign-up)

abajan
Thank you, 101!

I tried what you said to do and it worked like a charm! At first, I only included the "email" parameter everything worked out just fine.

I had been wracking my brain for most of last night trying to figure out how to do this, so you can imagine how very grateful I am for your solution!

Silly me! :oops: I was so wrapped up in trying to find out how to tinker with the <form> tag that it never occurred to me to look for a mail function in PHP.

Oh well... live and learn, I guess.

BTW, if anyone wishes to email me a message via my form (just to see if it really works) please use this new address (I uploaded a new file because I didn't want to overwrite my original one, in case something went wrong.) Also, you will need to either include your email address in the "Message" section of that form or monitor this thread for my response. That's because I haven't configured the form to email data from any other field but the "Message" one as yet.

 

 

 


Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

Similar Topics

Keywords : Data Automatically Posted Email

  1. Longest Email Address In The World - (56)
    yourname@abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com It is so long that...
    QUOTE -Some web forms are unable to read your email address -Some email software cannot be
    configured -People have a hard time typing in your email address -Companies think your email
    address is fake -The longest alphabetical email address on earth
    www.abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijk.com...
  2. Html Email - (3)
  3. Paypal Email - where can i find my paypal email? HELP anyone (3)
    Hi guys Im quite confused with the way paypal works. i know that i can pay other people thats easy
    to me.. but how do people pay me? for example, there is a site that pays people to search stuff
    using their search engine.. but the payment details you have to provide for paypal is your paypal
    email address. do they mean like the email address you used to sign up to paypal? or do you get a
    paypal email address when you sign up? any one know? let me know thanks really need the help...
  4. what's the best data recovery software for NTFS..? - (28)
    I had a problem with my hard disk... i a ¿need to recover my data.. Waht software would u
    recommend????? PS: If it runs under windows... it would be better!...
  5. Data Recovery - (3)
    Hi Friends I have required Data Recovery Software with Key for XP FAT32 file system. Regards
    Kashif...
  6. Use A Signature In Your Emails To Get Visitors To Your Site. - make visitors when u email someone (1)
    You probably send lots of emails to people you know. Well from now on, go to your email settings and
    find something called "Signatures". What ever you put in there, that'll always come right at
    the end of your outgoing emails. So you can put something like:
    ------------------------------------------------------------------------------- Thanks, Bob P.S.
    Visit my site at: Pgulfblog.com which talks about X.
    --------------------------------------------------------------------------------- Ofcourse give
    them a reason why they should visit your site, signup, or...
  7. Strange Email I Just Recieved - Is it junk, or is it somthing i need to dal with (17)
    I jsut recieved this strange e-mail and i dont know what to think of it...im thinking spam, just b/s
    but i dont quite know..any thoughts... QUOTE This message is not flagged.
    To: chris_aka_big_red@yahoo.com Subject: Dear Albus Dumbledore/Urgent ( Free Web Hosting, No Ads )
    From: Send an Instant Message "Free Web Hosting, No Ads" Add to Address BookAdd to Address Book
    Add Mobile Alert Date: Wed, 29 Mar 2006 06:38:03 +0000 Albus Dumbledore, barrthomascolechb has
    sent you this email from http://www.trap17.com/forums/index.php . From the Desk: Barrister. ...
  8. Rate The Person Who Posted Before You - rate them on what you think, and how good they are to the forums (2)
    I have seen this on other forums where someone starts a topic and the person who posts after that
    will rate the person before them...make sence?? ok well if it does why not give it a try? So
    since there is noone for me to rate i will not rate anyone >_ /laugh.gif"
    style="vertical-align:middle" emoid=":lol:" border="0" alt="laugh.gif" /> *edit* gunna be more
    descriptive on the rating... you can give them a #/10 and also give a reason why you give this
    number rating so high, or so low....explain why you like them, maybe even what you know about
    them...etc *edit*...
  9. Email Script - (2)
    I need ascript so my users can log in to email through squirrel mail....
  10. Why my MySql data base has ben deleted? - (65)
    Why my MySql data base has ben deleted? seit: http://wiejski.vaio-hosting.com/index.php ...
  11. What was your first ever email address? - (48)
    I just remembered mine, so I thought it might be interesting for you to see if you can remember your
    own one from whenever it was made... or if you still use the first one you made that could be
    interesting too. Anyway my old email was champion@limpbizkit.com back all the way when I liked
    that band and they gave free email to fans who went to their website (for some reason). What was
    yours...?...
  12. How do I remove <br /> tags from textarea data? - (1)
    Okay, I'll try to get straight to the point: I have a form on a PHP enabled subdomain that (thanks
    to 101 ) both displays submitted data for the user's convenience and posts that data to an email
    address. Here's the situation: Data posted within the textarea field of the form shows up
    exactly as submitted (with all linebreaks and spaces between paragraphs intact) except that
    wherever a linebreak occurs, there's an annoying tag. It all looks rather messy, especially when
    the sender uses lots linebreaks of paragraphs. I wouldn't mind so much if the data were fo...
  13. Mozilla and thunderbird email client - (2)
    I have the mozilla suite and included is thunderbird; the email client. I can send email from it
    but I cannot receive emails? I have an ntl email account anyone got one working :?:...
  14. Data Base Error?? - (3)
    CODE Warning: mysql_connect(): Too many connections in /home/rgi/public_html/phpBB/db/mysql4.php
    on line 48 Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in
    /home/rgi/public_html/phpBB/db/mysql4.php on line 330 Warning: mysql_errno(): supplied argument
    is not a valid MySQL-Link resource in /home/rgi/public_html/phpBB/db/mysql4.php on line 331 phpBB :
    Critical Error Could not connect to the database Data Base Error??...
  15. HELP! MySQL Data base compleatly erased!!! - (2)
    i went to my site to post a message saying I would be gone for about a week and the site was down,
    so I check on my MySQL data bases only it shows I have 0 Data bases :cry: :cry: :cry: :cry: :cry:
    :cry: Ironicaly enough I forgot for the first time EVER to back it up :cry: :cry: :cry: :cry:
    :cry: :cry: Luckly I've also had this problem on another host (though I had a back up) all that
    needed to happen whas the sql servers needed to be restarted is there any way possible to get them
    restarted? I tried also making a new DB but it wont work thats why I think they need t...
  16. data base help - (1)
    Im using phpnuke and i made a copy of my phpnuke database but how do i upload it? Thanks, Kyle...
  17. data base - (6)
    if i make a backup on my website (backup of forum)... will the messages be in my backup?...
  18. Intergrating users' data table for phpnuke and phpBB???? - (2)
    Just wondering... I am trying to make this happen. I am trying to intergrate user's data table
    from both phpBB and php-nuke. I want to do this so that users can just log in once and can go to
    the forum board without having to log in again. This must be possible, right? Can anyone help
    me on this?...
  19. -sorry posted in the wrong spot- - (0)
    -edit- I think I posted this in the wrong spot, I'll repost in PHPBB & other forum rescources...
  20. email accounts - (2)
    Hi, is there any tutorials on the email accounts.. I was wondering if i can give email accounts
    to the members of our spades club.. and if so how would they access the account.. Thanks
    Huskies / Elena...
  21. 535 Incorrect authentication data - (4)
    I have a forum on xerox-hosting... And there is smth strange with registration It looks like this:
    1. Usin' SMTP When user is trying to register he recieves the message ("535 Incorrect
    authentication data") 2. Without SMTP I do not receive an email from registered user I put in
    adminpanel option to activate users only by admin So could any1 tell me plz what's wrong and how
    to fix it?...
  22. what is the data base - (0)
    Is it a forum...
  23. Unsolicited Email From My Site - (7)
    People have said thay they have recieved e-mails containing viruses that appear to have come from my
    site 'sponkindustries.co.uk' The ironic thing is that i recieven an e-mail too... This is
    what is said: QUOTE Dear user of sponkindustries.co.uk, We have found that your account has
    been used to send a large amount of unsolicited email messages during the last week. Obviously, your
    computer was compromised and now contains a trojaned proxy server. Please follow instruction in
    order to keep your computer safe. Have a nice day, The sponkindustries.co.uk sup...
  24. New Email with New Domain name? - (0)
    If you buy a domain , does your email change from yourname. yoursite.xerox-hosting.com to
    yourname@yourdomain.com?...
  25. 1TB /500MB attachment Email - (43)
    OMG u wont blieve this 1TB email storage 500 MB attachment,, http://hriders.com i
    really cant believe it.. this is my account size Account Size: 7.207 Mb 107374182.4 Mb Limit...
  26. preloading data - instant next page etc - (0)
    Lots of sites seem to load data on a page before you can see it - so you get instance changes.
    For instance.. http://www.theherald.co.uk/news/31026.html when you click next page, the next
    page loads instantly without reloadidng the layout. How do i do something like that?...
  27. Simple Email Adress Protector Script - (0)
    As I was working on a sub domain for my new site I decided to protect the email addresses on the
    site with a simple javascript to prevent harveters from grabbing them and flooding the mail box with
    spam. Hadn't seen the script in the forum yet so I thought I'd share it. Change the username
    and siteURL to yours and place this code where you want the link to show. Left as is no line
    decloration will appear under the link. If you want the link underlined then change "none" to:
    underline CODE username = "usernameHere"; siteURL = "siteURLHere"; document.wri...
  28. about the email "FNH important news for free hosting me - (2)
    you ask me to post a replay to this topic:
    http://www.freenukehosting.com/forums/view...opic.php?t=4307 however, "Sorry, but only moderators
    can reply to posts in this forum." Replay or Reply? Support link disappeared? very
    confusing! :cry:...
  29. Email - (1)
    i need some login scripts like http://nitecki.chost.pl/infopage.php?id=3 can someone make me it
    ??...
  30. get ip via email or what? - (1)
    my friend and i are going to have a tournament for quake2 ctf. we want to try to make sure someone
    doesn't signup with two different teams or something. i was thinking for the player to email us if
    they wanted to join the tournament. if they use something like gmail rather than a pop3 to email us,
    it shows the ip of the gmail or whatever server rather than the person's ip. is there a better
    approach to getting the ip of people who want to join the tournament? thanks!...



Looking for data, automatically, posted, email

Searching Video's for data, automatically, posted, email




advertisement



How do I get this data automatically posted to my email?