Can some one have a look at this php script?

Ok! hear's the script! It work's fine! but with one problem.
when I get the email it look's like this>
Base Color: NaturalTread Color: Black
What I want the email to look like is>
Base Color: Natural
Tread Color: Black
ie i don't want all the "var's" on on line!
Hear's my php code>
Can someone have a look to give me some poniters?

I too am learnig. And just found this>
<?php
$sendTo = "******@hotmail.com";
$subject = "Combo Test Two";
$headers = "From: " . $_POST["name"];
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
$message .= $_POST["baseColor"] . "\r\n";
$message .= $_POST["treadColor"] . "\r\n";
mail($sendTo, $subject, $message, $headers);
?>
u need to put Line-Feed & Carridge Return:
\r\n
And good luck to you! Thanks for the help my friend!

Similar Messages

  • Can you please have a look on this small script?[SOLVED]

    Hello guys,
    I am writing a small script which has to do the following:
    1. It should run without any interruption. (Therefore while [ 1 ])
    2. While working continuously, it should check whether a folder named "check" is available in the folder "/home/arch".
    3. If it is the case, it should execute the script /home/arch/shutdownServer1
    The bash script I am trying to execute is the following:
    #!/bin/bash
    while [ 1 ]
    do
    if [$(ls /home/arch | grep check)="check"]; then
            /home/arch/shutdownServer1
    fi
    done
    I tried to execute the code while the folder named "check" was available in the folder "/home/arch" But I got the following error.
    /home/arch/myscript: line 5: [check=check]: command not found => This implies that the expression "$(ls /home/arch | grep check)" was evaluated correctly because of check=check. But why does it say "command not found"? Since check=check it should be evaluated as true and execute the script shutdownServer1?
    P.S.: myscript is the name of the bash script file.
    Guys, please help me.
    Thanks in advance
    Last edited by Archie_Enthusiasm (2010-11-29 12:20:58)

    Try one of these
    if [ $(ls ~/ | grep check) ]; then
    ~/shutdownServer1
    fi
    or
    [ $(ls ~/ | grep check) ] && ~/shutdownServer1
    Edit: @Allan: thanks for '-d', I completely forgot that
    Last edited by igndenok (2010-11-29 11:59:16)

  • In new iPad 4g, when sim card is not inserted, I can not find the enable 4g tap in the setting-cellular data tap, can some one please tell me if this is normal and if so, then when it appears, thanks

    In new iPad 4g, when sim card is not inserted, I can not find the enable 4g tap in the setting-cellular data tap, can some one please tell me if this is normal and if so, then when it appears, thanks

    If the SIM is out of your phone, find my phone needs a data connection, so could use wifi - IF in range of a wifi and one that it can join (ie. a known network or one that is wholly open so no login required).  Your phone could also simple be turned off, so not findable, or it may have been restored (plugged into iTunes and restored as new) again, making it permanently unfindable.  Honestly, for someone stealing an iPhone, this is likely the first thing they do - restore as new and it is theirs forever.
    Find my iPhone is tied to the users iCloud account - the find function is part of the iCloud account's services and it communicates with the iCloud servers over a data connection - either wifi or 3G.
    Have you set up your iCloud account on your replacement phone, and is it working properly on that phone?

  • Adobe XI Pro trial verison, when compared two pdf files it gives error  "Expected a Name Object"..Can some one say how to fix this?

    Installed Adobe XI Pro trial verison, when compared two pdf files it gives error  "Expected a Name Object"..Can some one say how to fix this?

    Installed Adobe XI Pro trial verison, when compared two pdf files it gives error  "Expected a Name Object"..Can some one say how to fix this?

  • I got error 3295 when doing software update to 4.3.4 on my iphone4.. can some one tell me how skip this error?? I'm new to apple products..!?

    I got error 3295 when doing software update to 4.3.4 on my iphone4.. can some one tell me how skip this error?? I'm new to apple products..!

    anyone????

  • Can some one explain each line of this abap code

    Hi..
      I got this code from a document, where they try to add account group (LFA1-KTOKK) to 0VENDOR_ATTR. I have no idea of ABAP syntax. Can some one tell me the meaning of each line of code.
    Tables:  LFA1.          "vendor master data table
    data:    l_tabix      like sy-tabix.
    case i_CHABASNM.
    *Enhancement of Vendor Master Record
         WHEN '0VENDOR'.
           case i_datasource.
             WHEN '0VENDOR_ATTR'.
               data:  l_s_BIW_LFA1_S like BIW_LFA1_S.
               loop at i_t_data into l_s_BIW_LFA1_S.
                 l_tabix = sy-tabix.
                 select single * from lfa1 where LIFNR = l_s_BIW_LFA1_S-LIFNR.
                 if sy-subrc = 0.
                   l_s_BIW_lfa1_s-ZZacctgrp = lfa1-ktokk.
                   modify i_t_data from l_s_BIW_lfa1_s index l_tabix.
                 endif.
               endloop.
           endcase.
       endcase.
    Thanks in advance.

    Hi
    Tables: LFA1. "vendor master data table
    <b>"here by saying Tables they have delcared the LFA1 table for further use in the program"</b>data: l_tabix like sy-tabix.
    <b>"here they have defined own table index by copying the structure of system index"</b>case i_CHABASNM.
    <b>"when character"</b>
    *Enhancement of Vendor Master Record
    WHEN '0VENDOR'.
    <b>"here it says that its 0vendor"</b>case i_datasource.
    <b>"when this datasource"</b>
    WHEN '0VENDOR_ATTR'.
    <b>"when datasource 0vendor_attr"</b>
    data: l_s_BIW_LFA1_S like BIW_LFA1_S.
    <b>"here we are declaring an internal table like BW internal table"</b>loop at i_t_data into l_s_BIW_LFA1_S.
    <b>"here looping at i_t_data table data into l_s_BIW_LFA1_S".</b>l_tabix = sy-tabix.
    <b>"here we are saying that our defined table index is equal to system index"</b>select single * from lfa1 where LIFNR = l_s_BIW_LFA1_S-LIFNR.
    <b>"selecting single rows from table lfa1 where lifnr is equal to l_s_biw_lfa1 field s-lifnr"</b>
    if sy-subrc = 0.
    <b>"if system field returns 0 that means the above line has been executed"</b>
    l_s_BIW_lfa1_s-ZZacctgrp = lfa1-ktokk.
    "internal table field is equal to lfa1 field."
    modify i_t_data from l_s_BIW_lfa1_s index l_tabix.
    <b>"changing the internal table data as per i_t_data"</b>endif.
    endloop.
    endcase.
    endcase.
    THIS IS MY UNDERSTANDING PLEASE KINDLY CORRECT ME IF I AM WRONG.
    thanks
    harish

  • Can some one help me to execute this program

    Curve is not displayed when this program is executed
    Write an applet to draw a red curve on a blue back ground which follows your mouse pointer. 
    Use anonymous inner classes.
    import java.applet.*;
    import java.awt.event.*;
    import java.awt.*;
    <applet code="Curve" width=200 height=100>
    </applet>
    public class Curve extends Applet {
         int x, y;
         String msg = " ";
         public void init() {
              setBackground(Color.blue);
              setForeground(Color.red);
              addMouseMotionListener(new MouseMotionAdapter(){
                   public void mouseMoved(MouseEvent me) {
                        msg = "*";
                        x = me.getX();
                        y = me.getY();
                        showStatus("x="+x+" "+"y="+y);
                        repaint(x, y, 1, 1);
         public void paint(Graphics g) {
              g.drawString(msg,x, y);
    }     

    I buffered it then it started working but problem is buffer size is
    limited. When the buffer is full then we have to start fresh again.You have made a buffer with two arrays of ints - and that allows you to
    paint the last 300 mouse positions. This is OK if you want the curve to
    have a fixed length: a bit like a snake following the pointer around.
    To avoid losing the whole curve you can initialise the x[] and y[] arrays
    to something "offscreen". For example fill both arrays with -100. Then
    in your paint() method you should draw all 300 positions.
    If you want the complete curve from the start with nothing lost then you
    are going to have to use a different sort of buffer. What you do is to
    create a BufferedImage the same size as your applet. When you create
    it you fill the buffered image with the background colour of your applet.
    In the mouseMoved() method you draw the * at the appropriate place into
    the buffered image. (There are other drawing strategies at this point:
    you could draw a line connecting this point to the previous one.)
    Finally in paint() you simply draw the whole buffered image into the
    applet's window.
    There is a discussion and example of using images as buffers this way
    in Sun's Tutorial here: http://java.sun.com/docs/books/tutorial/2d/images/doublebuffering.html
    repaint (int x, int y, int width, int height) - How this method works.This method says that a part of the applet's window should be
    repainted as soon as possible. repaint() without any arguments is
    used to signal that all of the window should be repainted.
    I would not worry about the 4 argument form at this stage - get
    something working first. Later you might find the 4 argument form is
    more effecient.
    Is there any reason why you're using Applet and not JApplet? If not,
    I would use the newer classes. In that case you'll get the best help in
    the Swing forum.

  • Can some one pls help me in this....

    When i try to start the domain1 to get into the admin console....
    with
    asadmin start-domain domain1
    after a series of steps it says this::
    Redirecting output to /opt/SDK/domains/domain1/logs/server.log
    Domain domain1 failed to startup. Please check the server log for more details.
    CLI156 Could not start the domain domain1.
    Can someone telll me why ???
    Thanks
    shruthi

    Oh Thank you..
    But is it the only way...
    I am running on apache2 and tomcat5...
    This server is all there in /opt/SDK....
    Will there be any dependencies That I am gonna miss by just trying to uninstall this....
    Lemme Know..
    Thanks in Advance
    Shruthi

  • I have CS6 Master Collection and Photoshop will not do a save as with any files that I am trying to save, can some one please help me?

    Can some one please help me with this?

    You would probably get some response if you posted your question in the Photoshop forum ...
    I'll move it there for you.
              - Dov

  • I keep gettinf this error message can some one help!!!

    I keep getting an error -50 when i try to display teh album artwork on my ipod can some one help me please

    Error 1604
    This error is often related to USB timing. Try changing USB ports, using a different dock connector to USB cable, and other available USB troubleshooting steps (troubleshooting USB connections. If you are using a dock, bypass it and connect directly to the white Apple USB dock connector cable. If the issue persists on a known-good computer, the device may need service.
    If the issue is not resolved by USB isolation troubleshooting, and another computer is not available, try these steps to resolve the issue:
    Connect the device to iTunes, confirm that the device is in Recovery Mode. If it's not in Recovery Mode, put it into Recovery Mode.
    Restore and wait for the error.
    When prompted, click OK.
    Close and reopen iTunes while the device remains connected.
    The device should now be recognized in Recovery Mode again.
    Try to restore again.
    If the steps above do not resolve the issue, try restoring using a known-good USB cable, computer, and network connection.

  • I have installed IOS 7 in my 4S but still when i connect it to itunes i am not able to copy music from my Itunes to my Phone any idea why? can some one help me with this. I am using Mac book Pro.

    Hi All,
    Issue 1:
    I have installed IOS 7 in my 4s and when i connect it to my  Mac itunes it detects my phone but i am not able to copy  from the itunes  version 11.1 (126).
    can some one check why i am not able to transfer pics or music from my Mac to iPhone 4s and can let me know on this please.
    Issue 2:
    And to all my apps i am not getting automatic  pop up when i receive a message, It says "Please connect to itunes to use push Notification" can some one say how to go about his.
    Issue 3:
    when i try to launch my facetime from my phone.After entering my user name and password it not launching my Facetime or imessage. dont know whats the reason, I am not able to use both Facetime and imessage from my iphone 4s.
    Looking forward for your reply.
    reagrds
    sathish

    I have the same problem. I think that someone tried my iphone before me because when I want to reset it, I'm invited to enter a password that I didn't set. Also, when I go the Map application, the iphone indicate that I'm locateded in China while I'm in Tunisia. Now, I can't connect to my iphone to itunes, and I can't reset it because it ask me to enter a password that I didn't set.
    This is my post:
    https://discussions.apple.com/thread/4063223
    Please, we need your help.

  • I have a targus 4.0 bluetooth usb adapter and so i can pair my iphone 4s and ipad air wirelessly, it seems to pair ok but when i try to connect i get a error message or not compatible. can some one tell me if it i can use this

    i have a targus 4.0 bluetooth usb adapter and so i can pair my iphone 4s and ipad air wirelessly, it seems to pair ok but when i try to connect i get a error message or not compatible. can some one tell me if it i can use this bluetooth with my devices, thanks

    sos1der wrote:
    pairing the apple equipment is not a big deal just wanted to add songs from itunes wirelessly.
    You can only add songs to your iOS device from iTunes via Wi-Fi sync or via your cable, not Bluetooth.
    sos1der wrote:
    but i tried paring my LG bluetooth so i can listen to music on my computer wirelessly buy it gives me the same error message
    That's an entirely different issue, unrelated to your iOS devices.

  • Hi there, I have MacBook Air (Mid 2012) with OSX 10.8.2. I want to update to latest OSX but it is saying that I need to first install MBA Flash Firmware Update 1.1. When I try to install this firmware, I am told I should have OSX 10.8.3,can some one help?

    Hi there, I have MacBook Air (Mid 2012) with OSX 10.8.2. I want to update to latest OSX but it is saying that I need to first install MBA Flash Firmware Update 1.1. When I try to install this firmware, I am told I should have OSX 10.8.3, Each one asking other to update first, can some one help me in this regard ?

    If you don't already have a current backup, back up all data, then reinstall the OS.* You don't need to erase the startup volume, and you won't need the backup unless something goes wrong. If the system was upgraded from an older version of OS X, you may need the Apple ID and password you used.
    If you use FileVault 2, then before running the Installer you must launch Disk Utility and select the icon of the FileVault boot volume ("Macintosh HD," unless you gave it a different name.) It will be nested below another icon with the same name. Click the Unlock button in the toolbar and enter your login password when prompted. Then quit Disk Utility to be returned to the main screen.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    If you installed the Java runtime distributed by Apple and still need it, you'll have to reinstall it. The same goes for Xcode.
    *The linked support article refers to OS X 10.9 ("Mavericks"), but the procedure is the same for OS X 10.7 ("Lion") and later.

  • I have compaq CQ61 309TUI have wrongly changed the DVD Region....​Its not working CAn Some one this

    I have compaq CQ61 309TUI have wrongly changed the DVD Region....Its not working CAn Some one this

    Try:
    http://snapguide.com/guides/calibrate-your-home-button/?utm_expid=69945963-15
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • I have iphone 4g and have updated to ios6 an updated itunes 2, but while sync itunes freezes and iphone is not sybc fully, finally i have to disconnect my iphone for itunes to shunt down. Can some one please tell why this is happening?

    I have iphone 4g and have updated to ios6 an updated itunes 2, but while sync itunes freezes and iphone is not sybc fully, finally i have to disconnect my iphone for itunes to shunt down. Can some one please tell why this is happening?

    I am having this problem.  At first with the new iPhone 5, and then with the iPad 2.  I am not sure why this is happening. 
    My gut feeling is this is an iO6 issue and here's why -
    The problem mainly occurs with apps.  I have about 150 apps, and when I plugged in the phone, iTunes went to sync all of them.  The process would hang up after about 20 - 30 apps were loaded onto the phone. I could tell where about the process hung up because the apps on the phone showed up as "waiting".
    Then on the iPad 2 I plugged in to sync and saw there was a huge "Other" component in my storage.  It required me to restore the iPad 2 from backup.  With this restore the same issues occurred - putting the apps back on the iPad would hang up.  The videos on the iPad also got stuck - maybe after about 10 hours of videos transfered iTunes crashed.
    My solution has been to soft reset the device, restart Windows, and continue the process until it's complete.  This is remarkably inefficient and time-intensive but everything works with patience.
    I have been wondering if others have had these same problems. 

Maybe you are looking for

  • HT4528 I deleted my iphone rotation how do I get it back

    I deleted my rotation button how can I get it back?

  • Organizational unit's attributes

    Hi! How can i to see the organizational unit's attributes ? For example in the transaction ppoma_crm , subscreen function, radiobutton service, local service organization. I need this information in a very technical level, tables, function modules...

  • Problem using SUM BY

    I need to count the number of jobs by year and nature of the job. I need to calculate also the number only by year (to calculate, later, the percentage). To do this, I tried to use the SUM BY statement: SUM("- Misure"."Numero Lavori" by "- Inizio Lav

  • IPhone freezes when syncing.

    When I attempt to sync my iPhone 3G it will get about 30% done before iTunes says that connection with the device has timed out. Which then freezes my phone and forces me to restore. Is this known, and is there a way to fix it?

  • Validity of SAP note 1172948 ??

    Hi All, We have SAP Solution Manager EHP1 SP24 installed and as part of initial configuration, I am trying to implement this note but in snote it is coming as SAP note cannot be implemented. If I check this note then it says correction instruction de