Jump to content

Where is the submitted info sent? How can I send it to email?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#1
whaatup

whaatup

    Newbie

  • Members
  • Pip
  • 7 posts
When users enter their info and hit "submit", where is their information sent to?

<html>

</script>

<div align="center" style="text-indent: 0pt;"><img src="/page/-/files/header_form_title.jpg" border="0"></div>

<form action="volunteer.php" method="post" onSubmit="return checkform();" style="position:relative;">

<input class="header_input_fname" style="position:absolute; top:0; left:0;" name="firstname" id="fname" value="First Name"

onclick="if(this.value=='First Name'){this.value='';}">

<input class="header_input_lname" style="position:absolute; top:0; left:112px;" name="lastname" id="lname" value="Last

Name" onclick="if(this.value=='Last Name'){this.value='';}">

<input class="header_input_email" style="position:absolute; top:24px; left:0;" name="email" id="email" value="E-Mail"

onclick="if(this.value=='E-Mail'){this.value='';}">

<input class="header_input_zip" style="position:absolute; top:53px; left:0;" name="zip" id="zip" value="ZIP Code"

onclick="if(this.value=='ZIP Code'){this.value='';}">

<input type="image" src="/page/-/files/btn_signup.png" style="position:absolute; top:53px; left:110px;"

class="header_input_button"><br>

</form></div></div>

<div id="nav" style="background-image:url

(/page/smartproxy/BSD_EQROVgIKSFYJRlVGRQRHBAdQV1tAVgkdAVZf/FQRRUA/SA/AwxaUBA/CwRAVwIWOVYCHUBbVg);"><script

language="javascript">


How can I use this code to have it sent to an email?


Thank you

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
You can't. volunteer.php is a server-side script that will send the email.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Guest_johnny.dacu_*

Guest_johnny.dacu_*
  • Guests
if you need a script to send an email throw php check this first: PHP: mail - Manual. It's a native php function to send an email.

#4
bbqroast

bbqroast

    Codecall Addict

  • Members
  • PipPipPipPipPipPipPip
  • 554 posts
If you put in "mailto:myemail@gmailisthebest.com" for the form action part it would send it to your email.
Right now the code is being sent to a php page (you need software installed on your server to use php)
Please, write clearly with proper structure. Double spacing makes the text feel un-jointed, Capitalizing Every Word Means People Stop Before Every Word Sub-Consciously Which Is A Pain In The Backside, and use code tags! (The right most styling box).

#5
zeroradius

zeroradius

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,406 posts
bbqroast,

mailto is very outdated. I tried using it when doing some work for a professors buisness back beofre I learned PHP. It tries to force you to send it via microsoft outlook (which is understandable HTML can not actualy send mail a server has to send the mail using SMTP) if you don't have outlook than your screwed.
Posted Image

#6
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts

zeroradius said:

mailto is very outdated..

It's the equivalent of opening up an internet shortcut on your desktop (and it jumps to your current browser), you configure what you wish. In add/remove programs and settings, there's a nice option to open up mailto: links in your favourite client, or even Windows live Hotmail.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#7
DEViANT

DEViANT

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 358 posts
Using mailto: on your pages can also lead to the given email address receiving spam if I'm not mistaken. Crawlers can pick up the address.

:D You should rep+ me so that I can win :D

My Blog | Ask me!
Error : Satan did it

#8
Some1

Some1

    Newbie

  • Members
  • Pip
  • 7 posts
Hey all;
From what i have learned, if u use php script to enable posting throught the email or any other form to do notification in your email ,u gotta have a server with standard database support (perhaps only php or .net,not sure) or u can do it throught java script (which is head smashing for newbs),so i just use premade service(for email form) for free,hope it helped