Adding input type to my mail page and PHP attached to it question

I need to add a few more input boxes in my form but every time I do it, I still only get what's on the code under this what I'm writing now.
This is the code in my mail page itself:
        <form action="mail.php" method="POST">
          <p><b>Name</b><br>
            <input type="text" name="subject" size=40>
          <p><b>Please fill out your email/address/phone number</b><br>
              <textarea cols=40 rows=10 name="message"></textarea>
          <p><input type="submit" value=" Send ">
        </form>
This is the code in my php page it's attached to.
<html>
<head><title>Support a Hero</title></head>
<body>
<?php
$email = '[email protected]';
$subject = $HTTP_POST_VARS['subject'];
$message = $HTTP_POST_VARS['message'];
if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) {
  echo "<h4>Invalid email address</h4>";
  echo "<a href='javascript:history.back(1);'>Back</a>";
} elseif ($subject == "") {
  echo "<h4>No subject</h4>";
  echo "<a href='javascript:history.back(1);'>Back</a>";
elseif (mail($email,$subject,$message)) {
  echo "<h4>Thank you for sending email</h4>";
} else {
  echo "<h4>Can't send email to $email</h4>";
?>
</body>
</html>

anybody know?  I can't seem to add extra post_vars to communicate with my PHP script.  What am I doing wrong?  It looks like it should work.  I get the email to my email but I'm only getting the name in my email subject and then the message.  The other boxes that are filled out don't come to my email.  I would like to see where the email comes besides "secure server".  Is that possible?  Here's the script. 
This is in my HTML:
<body>
        <form action="mail.php" method="POST">
          <p><b>Name</b><br>
            <input type="text" name="subject" size=40>
            <p><b>Name</b><br>
            <input type="text" name="name" size=40>
            <p><b>Name</b><br>
            <input type="text" name="email" size=40>
            <p><b>Name</b><br>
            <input type="text" name="phone" size=40>
<p><b>Please fill out your email/address/phone number</b><br>
              <textarea cols=40 rows=10 name="message"></textarea>
          <p><input type="submit" value=" Send ">
    </form></td>
  </tr>
</table>
Here is my PHP that it's attached to. 
<html>
<head><title>Support a Hero</title></head>
<body>
<?php
$email = '[email protected]';
$name = $HTTP_POST_VARS['name'];
$your email = $HTTP_POST_VARS['email'];
$phone = $HTTP_POST_VARS['phone'];
$message = $HTTP_POST_VARS['message'];
if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $email)) {
  echo "<h4>Invalid email address</h4>";
  echo "<a href='javascript:history.back(1);'>Back</a>";
} elseif ($subject == "") {
  echo "<h4>No subject</h4>";
  echo "<a href='javascript:history.back(1);'>Back</a>";
elseif (mail($email,$subject,$message)) {
  echo "<h4>Thank you for sending email</h4>";
} else {
  echo "<h4>Can't send email to $email</h4>";
?>
</body>
</html>

Similar Messages

  • I have setup my mail but now it always opens to welcome to Mail page and I can't get past it.

    I have set Mail and it worked fine before I upgraded to OS 5.  Now it always opens to Welcome to Mail page and I can't get past it. I tried just setting up the account again but it gives me the message that it already exists.  I can see 50 emails in the Mail icon.  How do I get past Welcome?

    Try a reset: hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)

  • Can I combine e-mail page and address book?

    I'm sure I will eventually be convinced that Mac is easier to use than a PC. With my PC my e-mail was Microsoft Outlook. My address book was listed on the lefthand column of the page along with "inbox', "sent" etc. All I had to do was click on it to bring it up and then click on the appropriate address which was automatically filled in on my outgoing e-mail page. Now, I have to open 'mail' and also 'address book' separately. Then nothing happens when I click on an address so I have to start typing it in and only then will it automatically finish filling in. Is there an easier way on Mac or is there a way I can get Outlook as my mail account on my iMac. I know most of you are young and were born holding a computer in your lap but I came to them later in life and, although very knowledgeable about many things, computers are way down on the list so I am very grateful for your help and patience with a grandmother.

    As long as you have the contact's email address in your address book, all you have to do is start typing the person's name in the "to" box, and it will finish it for you. If you have more than one person named "Steve" for example, if you start typing the name, and you know you have more than one person of the same name, wait a second or two, and a box will open with all of the people of that same name, You can then scroll down using the arrow key and select the person you want.
    Or if you know the first couple of letters of that person's address, you can type those in, and the person's email address will finish. That's a little bit easier if you have multiple names.
    Hope this helps...

  • Adding new elements to a Master Page and sharing them to existing pages

    I need to include new navigation elements on the master page
    and I want it to show up on pages I've already created. I've added
    the new elements on a layer of their own which is part of the
    master page, but the Share Layer to Pages... option is dimmed.

    jcbluesman wrote:
    > I'm using CS4, Jim, and here's a link to the .png
    > (
    http://idisk.mac.com/jconstant-Public/deimos.png
    >
    > The 3 tabs in the upper right on the master page are the
    ones I'm trying to
    > share across the existing pages. I created them in PS
    (also CS4), then imported
    > the .psd into this FW document, if that makes any
    difference.
    >
    > Thanks,
    > Jim
    >
    OK there are two related as I see it.
    Each of your pages consists of a solid, opaque bitmap for a
    main image.
    Master Pages, by default, are at the bottom of the layer
    stack. Your
    tabs ARE present, you just can't see them because they are
    covered up by
    the bitmap.
    Assuming you don't have those page images as multi-object
    elements,
    where you can edit the blue backgrounds, there are still two
    things you
    can do, both of which are pretty easy.
    Go into each page and temporarily reduce the opacity of Layer
    1.
    Use the marquee tool to draw a selection around the area of
    the tabs.
    Delete the selection.
    Return the lay back to full opacity.
    OR
    Try dragging the Master page to the top of the layer stack in
    each page.
    Hide or delete the Master page background.
    This option is a little trickier, but I was able to do it.
    Wait for the
    black bar to appear before you release the mouse. You may
    need to try
    this a few times before it works.
    HTH
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    Adobe Community Expert
    http://tinyurl.com/2a7dyp
    .:Author:.
    Lynda.com -
    http://movielibrary.lynda.com/authors/author/?aid=188
    Peachpit Press -
    http://www.peachpit.com/authors/bio.aspx?a=d98ed798-5ef0-45a8-a70d-4b35fa14c9a4
    Layers Magazine -
    http://www.layersmagazine.com/author/jim-babbage

  • A box keeps popping up tel available for application memory. What does this mean? It lists Firefoc, Safari Mail, Pages and Finder.

    A box keeps popping up on my MacBook telling me that my Mac OS X Startup disk has no more space available for application memory. It shows Firefox, Mac Mail, Finder and Pages. What does this mean? Thanks. Jessie

    Apple menu > About This Mac > More info... > Storage
    How much free space do you have?

  • Forms 6i, open default mail client and add attachment to message

    Hi,
    I would like to use some functionality in my forms application. I want call some action, that opens default mail client in windows platform and add some attachment to message. I want to do this for my reports. I am exporting reports to PDF files. I am using oracle forms / reports 6.0.8.12.1 version. And I cant use build-in PDF export functionality, because exported PDF files are in old PDF version and I have problem with Czech charakters. So I am using my own virtual PDF printer for printing reports. A now I would like to send report as mail attachment. I know that there is this functionality in report preview. When I click button with letter image (showed on screenshot at http://img20.imagevenue.com/img.php?image=00067_screen_122_899lo.JPG) the default mail client is opened in this is created new messages with report (eps) in attachment.
    That is what i need. Only open default mail client and add own attachment to message.
    I found only one solution for Outlook, but I need open default mail client (for example Mozilla Thunderbird etc.)
    Can You help me? Or send some solution how it is solved in report previewer?
    Thank you.

    Hi,
    metalink Note 47498.1 "Programmatically Sending a Fax/Email via Microsoft Exchange" may be a good documentation for you. Have a look in there.
    regards,
    Heike

  • Ghost ipad - touches randomly and types, jumps across different pages and won't stop. It's possessed! Help me!

    My iPad has been acting very ghost-like, typing randomly and switching between different screens. When I check my mail, it starts deleting messages. It has and invisible finger typing and touching things, also opening apps. It's possessed. What do i do???????

    I Had the ghost touching problem and found that when I held the ipad with the screen facing the floor, the ghosting stopped.  I reasoned it must be something loose that made contact in the normal position.  The only thing I could come up with was the home button. The home button assembly consists of a frame, a small circuit board that makes contact with the motherboard to move the pages etc, the button , and a spring retainer between the button and the small circuit board. If the retainer is missing or has moved out of position, the button does not spring away from the circuit board and any movement of the ipad allows the bottom to make intermittent contact to move pages etc.  I opened the ipad up and sure enough the retainer was missing.  I reinstalled the button assembly with the spring retainer, put everything back together, voila the ghosting stopped.  My iPod is like new.  The problem you will face to fix this, you have to remove the glass screen of the ipad.  Not an easy job.  And bad things may happen in the process.  Google a service to do it for you.  May cost you a hundred bucks.  There may be other reasons for ghosting but this. Fix worked.  Good luck.

  • I have drop box installed but I get e-mails that and the attachment goes to drop box but I can't open most of the files

    I have dropbox installed and most files that go to drop box open OK but some files fail to open and I get a message that my apps don't support thoses files. Help!

    Certain files like WMV need 3rd party Apps to open.

  • Hello everyone, How do I add by default a date on the actual E-mail page the date and time of when I have sent the e-mail ? Thank you very much for your suggestions. Kind regards, Christopher H. Bull, Birmingham, UK.

    Birmingham, Thursday 2. Feb. 2012
    To whom it may concern,
    I have an issue regarding the e-mail system, and I wanted to know how I can add a default that the date and time is added automatically to the E-mail page everytime I draft a new e-mail.
    Does anyone know how do create a "plug-in" to enable me to have the date and t ime posted on the e0-mail page every time i send a new e-mail ?
    If there is a plug in which is compatible with Lion iMac computers thart insert the date and time into every E-mail I send ?
    Kind  regards
    Christipoher H. Bull
    E-mail: [email protected]

    This supports macros and variables, it doesn't specifically state date and time, but if it supports variables I'd be surprised if it didn't have variables for those:
    http://email.about.com/cs/mailplugins/gr/mailtemplate.htm
    This one also supports variables and may do what you want:
    http://itunes.apple.com/gb/app/logical-mail-free/id451881152?mt=12
    You may want to look for more, I found those by googling 'mac email templates variables'.

  • Change input type and output type

    Hi,
    I am working on BPEL10.1.2. I need to change my input type to take more parameters and output type to send more parameters. Somehow I am not able to find hot to do it. Any help on this will be appreciated.
    Regards
    Arvind Aggarwal

    It's odd. In this case you must create your .xsd file and import it into the project (just see any of the tutorials).
    Don´t you see the .xsd file in the structure tag in JDeveloper?. Maybe you need to recreate your project.

  • Use of input  type="file"

    Hellow
    How can I use the HTML tag <input type="file" > in jsp/servlets ?
    how can I got the file and saving it?

    Take a look at this page: http://search.java.sun.com/search/java/?qt=jsp+upload&x=39&y=6 - it is a search page and you can use it to find whether or not anyone has asked the question you have before. Often you will find that the question you have asked has been asked before, sometimes as much as 29000 times. It is quicker than asking a question for the first time because you don't have to wait for replies. - they are already there. I also believe that if you don't know understand search engines you are unlikely to understand Java.
    To help with your search you may want to know that the "file" input type creates a Multipart request and that the term "com.oreilly.servlets" may well be relevant too.

  • Change mail subject and body text

    Hi all,
    i activated access method M in tr. SPAD and via this method i'm sending various reports in PDF to external e-mails. But when recepitiens recive e-mail i have subject of e-mail composed of SYSTEM ID and SPOOL NUMBER (e.g. R3P-12345) and i also have defaulted mail body text :
    The Mail Attachment Contains the Print File Created by User XXXXX , with Number xxxx from SAP System R3P .
    To Print the Data, Open the Mail Attachment with a Suitable Program and Print the Document.
    How can i change mail subject and body text?
    Regards,
    PS*

    For the output type Maintian the Mail body and subject.
    You can do this at NACE==>Output Type ==> Mail title and texts
    rgds,
    TM
    See the link
    http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/UtilityCode.html
    Message was edited by: Thomas Mann

  • Cannot download Mail from ISP Web Mail Page.  Help please?!!

    Using an Intel Mac, running OS X. 4. 11
    Mail 2.1.3
    Last night suddenly my mail stopped downloading new incoming mail from the server web mail page.
    I have spoken to my ISP/server (they have an excellent Mac tech team.) and the settings for my account are correct, and Connection Doctor says all is well.
    I can send mail, well I have not had any response from people yet to know they got it! But a test to myself goes into my web mail page and will not download either.
    My ISP says they wonder if it is problem with the Mail application.
    I do not want to do a clean install, and risk losing any data.
    As it was all of my old mail in my inbox and Trash, I had kept from people as a reminder, that went when we altered the settings temporarily but when that did not work we went back to the original settings.
    I hate having to have a web page open as well as my mail when replying to a person.
    Any ideas?
    Or if it is a Mail problem might it work if I used a different mail application such as Eudora or Thunderbird?

    Might be Apple, but I'd try re-applyimg the latest update...
    The combo update for PowerPC-based Macs...
    http://www.apple.com/support/downloads/macosx10411comboupdateppc.html
    The combo update for Intel-based Macs...
    http://www.apple.com/support/downloads/macosx10411comboupdateintel.html
    Repair Permissions after re-install, then reboot again.
    Use Custom installs in Mac OS X 10.4
    http://docs.info.apple.com/article.html?artnum=301229
    Here's a complete list of all the custom installation options available with Optional Installs.mpkg:
    * Applications
    o Address Book 4.0
    o iCal 2.0
    o iChat 3.0
    o iTunes 4.7.1
    o Mail 2.0
    o Oxford Dictionaries
    o Safari 2.0
    o X11
    To re-install Mail, or do An Archive & Install, which gives you a new OS, but can preserve all your files, pics, music, settings, etc...
    http://docs.info.apple.com/article.html?artnum=107120

  • Update Secure Certificate for Mail (Identification and Encryption)

    Hello...
    Can you help?
    I have several email addresses; all of which have valid secure certificates (stored by default automatically in Key Chain).
    Whereas previously the certificates did not feature my name, new ones have been issued which do.
    So... my question is as follows:
    How do I point Mail to use the new certificates that have my name engrained within, opposed to the older ones which do not?
    Thank you, in advance.
    A

    Hi ... I have been struggling with exactly this point, too. Try out the new Leopard feature called "New preferred Identity". For this open keychain, go to my certificates and control-click on each certificate individually as choose "new preferred identity". Here you can type the e-mail address and choose one of your certificates to be used "preferably". This is the official Apple way of doing it and you may read further information in the support section. Please let me know if it works with you!
    In any case, it hasn't worked for me. I had to delete all old certificates for the same e-mail address and keep only the most recent one with my real-life name in it (you can delete right in keychain). After restart mail.app only uses the new certificate for signing e-mails.
    You would expect that deleting the old certificate destroys your ability to read the older encrypted e-mails. But the good news is that everytime you open an e-mail with your old certificate mail.app will add the old certificate back to keychain and you can again read your encrypted e-mails which used the 'public' key from the old certificate. Although mail.app will add the old certificates again it will continue to use the new certificate. I call this a work-around because really the "new identity preference" should have worked.
    I hope I helped you.
    Valentin.

  • I cant type any letters on pages?!?!?

    can anybody help me? i cant type any letters on pages and cant change the style like the color...?!?

    Hi steniel,
    If you want to write text without first inserting a container for the text, then open a blank template from the Word processing section of the Template Chooser.
    Word processing documents have a text layer, into which you can enter text directly.
    Page Layout documents do NOT contain a text layer. A blank Page Layout document is a blank canvas on which "objects" may be placed.
    "Text" is NOT an "object." "Text" requires a container.
    The container may be a Text box, a Shape, a Table—all of which are "objects"—or a Chart (which is a collection of "objects" as well as being an "object" itself).
    Regards,
    Barry

Maybe you are looking for

  • How to automate the  process of vendor invoice verificaiton  from SAP

    My client to scan the Invoice (once it is received from vendor), upload it in SAP, the User will look at the Invoice in SAP and then perform Invoice Verification in MIRO. The Process mechanics is 1.Plant Manager will receive the Invoice physically by

  • Workflow Escalation Problem

    Hello all, I need to initiate a criteria workflow with 2 steps and each step having 1 user. I want a situation where a workflow is being initiated and it goes to step1 user then it will wait for a specific time (say 5 mins) for that user to approve.

  • No more scanning HP LaserJet 3020 after upgrading to MacOS X 10.10 Yosemite

    The device still prints. Scanner device: You can not open the application "HP Scan" because PowerPC applications are no longer supported.  Systemversion: OS X 10.10.1 (14B25)   Kernel-Version: Darwin 14.0.0   Startvolume: Macintosh HD

  • My 17'' MacBook Pro is crashing repeatedly

    The machine is a 17" MacBook Pro, bought in August 2009. It worked fairly well, until I upgraded to Lion. Since then it crashes many times per day. I have done a clean install, and it still crashed, at least every half hour and often more. Preview in

  • Make a second copy on import to external drive and copy the file by date

    In earlier versions I made second copies of files imported to an external hard drive.  The files would import and automatically create a capture date file folder in the same manner as importing by date to the primary internal drive.  At some point th