Email Form Troubles

Hi folks,
Happy Thursday!
A client recently sent me an email she received from her
online form (code below). It reads:
I wish I could have chosen the \"I\'d like you to write for
my publication\" subject. But, I\'m just here to let you know your
website is outstanding and beautiful... peaceful and curious at the
same time. I think it\'s the cool colors and the intricate image
that make me feel that way. I read several of your architect
articles. You\'re very talented.
When I contacted GoDaddy about it, as I'd never seen that
before, they said:
"Unfortunately looking into the file it seems there is a
scripting error with your form. We are unable to assist customers
with scripting issues."
I went to my normal I-cant-figure-this-out code guy, and he
tinkered with some things but to no avail. I also contacted another
client to see if they had the same issue, and they do. If the issue
is with my form, would someone please explain what I'm
missing/doing wrong? I'd be greatly appreciative. Many thanks.
=========================

Hi,
Can you please show me your .php page? What you need to do is
find the place
where you're writing the fields into the e-mail, and add:
stripslashes()
around those values.
HTH, take care,
Shane H
[email protected]
http://www.avenuedesigners.com
=============================================
Back for 2007, close-up magic:
http://deceptivemagic.com
Web dev articles, photography, and more:
http://sourtea.com
=============================================
Proud GAWDS member
http://www.gawds.org/showmember.php?memberid=1495
Delivering accessible websites to all ...
=============================================
"Jim Nee" <[email protected]> wrote in
message
news:[email protected]...
> Hi folks,
>
> Happy Thursday!
>
> A client recently sent me an email she received from her
online form (code
> below). It reads:
> -----
> I wish I could have chosen the \"I\'d like you to write
for my
> publication\"
> subject. But, I\'m just here to let you know your
website is outstanding
> and
> beautiful... peaceful and curious at the same time. I
think it\'s the
> cool
> colors and the intricate image that make me feel that
way. I read several
> of
> your architect articles. You\'re very talented.
> -----
>
> When I contacted GoDaddy about it, as I'd never seen
that before, they
> said:
> -----
> "Unfortunately looking into the file it seems there is a
scripting error
> with
> your form. We are unable to assist customers with
scripting issues."
> -----
>
> I went to my normal I-cant-figure-this-out code guy, and
he tinkered with
> some
> things but to no avail. I also contacted another client
to see if they had
> the
> same issue, and they do. If the issue is with my form,
would someone
> please
> explain what I'm missing/doing wrong? I'd be greatly
appreciative. Many
> thanks.
>
> =========================
>
>
> <form id="contact2" name="contact" method="post"
action="../gdform.php">
> <input type="hidden" name="redirect"
value="contact/thankyou/" />
> <table width="453" height="300" border="0"
cellpadding="0"
> cellspacing="5" summary="use this form to email Emily
Lowe.">
> <caption>
> <strong>Email Form</strong>
> </caption>
> <tr>
> <td width="130" height="20" align="right"
valign="top"><div
> class="contactSplash">
> <label for="name"> your name: </label>
> </div></td>
> <td width="308" height="20" align="left"
valign="top"><input
> name="name" type="text" id="name" size="20"
maxlength="60" />
> </td>
> </tr>
> <tr>
> <td width="130" height="20" align="right"
valign="top"><div
> class="contactSplash">
> <label for="email"> your email: </label>
> </div></td>
> <td width="308" height="20" align="left"
valign="top"><input
> name="email" type="text" id="email" size="25"
maxlength="60" /></td>
> </tr>
> <tr>
> <td width="130" height="20" align="right"
valign="top"><div
> class="contactSplash">
> <label for="subject"> subject: </label>
> </div></td>
> <td width="308" height="20" align="left"
valign="top"><select
> name="SUBJECT">
> <option selected="selected">Please choose a
> subject:</option>
> <option>I'd like you to write for my
publication.</option>
> <option>I'd like to reprint something you've
> written.</option>
> <option>I have a general question about your
> work.</option>
> <option>I'm having trouble with this
site.</option>
> </select>
> </td>
> </tr>
> <tr>
> <td width="130" height="204" align="right"
valign="top"><div
> class="contactSplash">
> <label for="message"> your message: </label>
> </div></td>
> <td width="308" align="left"
valign="top"><textarea
> name="message"
> cols="35" rows="10" id="message"></textarea>
> <input class="button" name="submit" type="submit"
> id="redirect"
> value="send email" />
> <input class="button" name="reset" type="reset"
id="reset"
> value="reset form" /></td>
> </tr>
> </table>
> </form>
>

Similar Messages

  • Trouble linking AS3 and PHP to create email form

    I am using one of the Adobe cookbooks to create an email form for my flash website. I am SO close to getting this right and need some help! I used the AS3 code below as well as the PHP code below in order to create the email form. Everything seems to be working fine, that is until I try to send an email using the form. When I input all of the text into the form, I get the actionscript default warning I wrote that states "Oh no! Something is wrong! Try again..." Hence the email will not send. What could be wrong with the script? Or does it matter where I file the PHP file, my swf file, html file, and my fla file? I tried several combinations of filing everything together, seperate, and everything in between. Help! And thanks for anyone who can help!
    ACTIONSCRIPT CODE USED:
    stop();
    Buttons      
    sendbtn.buttonMode = true;
    sendbtn.addEventListener(MouseEvent.CLICK, submit);
    resetbtn.buttonMode = true;
    resetbtn.addEventListener(MouseEvent.CLICK, reset);
    Variables needed       
    var timer:Timer; var varLoad:URLLoader = new URLLoader;
    var urlRequest:URLRequest = new URLRequest( "mail.php" );
    urlRequest.method = URLRequestMethod.POST;
    Functions
    function init():void{
    //Set all fields to empty
    yourName.text = "";
    fromEmail.text = "";
    yourSubject.text = "";
    YourMsg.text = "";
    function submit(e:MouseEvent):void{
    //Check to see if any of the fields are empty
    if( yourName.text == "" || fromEmail.text == "" ||
    yourSubject.text == "" ||YourMsg.text == "" )
    { valid.text = "All fields need to be filled.";
    //Check if you're using a valid email address
    else if( !checkEmail(fromEmail.text) )
    { valid.text = "Enter a valid email address"; }
    else { valid.text = "Sending over the internet...";
    var emailData:String = "name="
    + yourName.text + "&from="
    + fromEmail.text + "&subject="
    + yourSubject.text + "&msg=" + YourMsg.text;
    var urlVars:URLVariables = new URLVariables(emailData);
    urlVars.dataFormat = URLLoaderDataFormat.TEXT;
    urlRequest.data = urlVars; varLoad.load( urlRequest );
    varLoad.addEventListener(Event.COMPLETE, thankYou );
    function reset(e:MouseEvent):void{
    init(); //call the initial clear function
    function checkEmail(s:String):Boolean {
    //This tests for correct email address
    var p:RegExp = /(\w|[_.\-])+@((\w|-)+\.)+\w{2,4}+/; var
    r:Object = p.exec(s);
    if( r == null ) {
    return false;
    return true;
    function thankYou(e:Event):void {
    var loader:URLLoader =
    URLLoader(e.target);
    var sent = new
    URLVariables(loader.data).sentStatus; if( sent == "yes" )
    valid.text = "Thanks for your email!";
    timer = new Timer(500);
    timer.addEventListener(TimerEvent.TIMER, msgSent);
    timer.start();
    else {
    valid.text = "Oh no! Something is wrong! Try again..."; }
    function msgSent(te:TimerEvent):void {
    if( timer.currentCount >= 10 ) { init();
    timer.removeEventListener(TimerEvent.TIMER, msgSent);
    PHP CODE USED
    <?php $yourName = $_POST['name'];
    $fromEmail = $_POST['from']; 
    $yourSubject = $yourSubject = $_POST['subject'];
    $YourMsg = $_POST['msg'];
    if( $yourName == true ) { $sender = $fromEmail; $yourEmail ="[email protected]";  (I have changed this to my email address, although not given in example)
    $ipAddress = $_SERVER['REMOTE_ADDR']; 
    $emailMsg = "$ipAddress \n$yourName  \n$sender
    \n\n$YourMsg 
    \n\n\n--Memo for myself--";$return = "From: $sender\r\n" .
    "Reply-To:$sender \r\n" ."X-Mailer: PHP/" . phpversion();
    if( mail( $yourEmail, "$yourSubject", $emailMsg, $return
    echo "sentStatus=yes"; }
    else { echo "sentStatus=no"; } }
    { $sender = $fromEmail; $yourEmail ="$fromEmail"; 
    $emailMsg = "\n\n\n--Memo for the sender. i.e. this is a copy of message you sent me.--
    \n\n$yourName  \n$sender
    \n$YourMsg \n";$return = "From: $sender\r\n" .
    "Reply-To:$sender \r\n" ."X-Mailer: PHP/" . phpversion();
    if( mail( $yourEmail, "$yourSubject", $emailMsg, $return
    echo "sentStatus=yes"; }
    else { echo "sentStatus=no"; } }
    ?>

    It may be indeed a problem of your server rsp. how it handles security issues and relative path-linking.
    You wrote: "Or does it matter where I file the PHP file, my swf file, html file, and my fla file..." I suppose you mean where to put all the files.
    1.Its a good beginners choice to put all the files you need (swf, html, php you don`t need the fla file on ) in the same directory of your server.
    2.If you publish to html from flash there will be three tags in the html (use a texteditor to look at the html-code) that read like this:
    <param name="allowScriptAccess" value="sameDomain" />
    change them for testing purposes to
    <param name="allowScriptAccess" value="always" />
    3.On some servers to prevent malicious code php scripts are restricted to certain directorys, look up the phpinfo on your server
    4.Even if swf, html and php are in one and the same directory use a "hard" path in your fla file for testing purposes, for example instead of calling "file.php" in your actionscript, call ("http://www.mydomain.com/directory/file.php"), when testing from flash you may get a better response where the problem lies

  • PHP Email Attachment Trouble Shooting

    I am having problems finding a good example php script to send an attachment in my email form. I have written many scripts. Can someone help me? I will attach my current script below.
    <?php
    $subject = 'Online Application Candidate';
    $emailadd = '[email protected]';
    $url = 'http://www.mydomain.com/Form/application_recieved.htm';
    $req = '0';
    $mime_boundary="==Multipart_Boundary_x".md5(mt_rand())."x";
       $tmp_name = $_FILES['file']['tmp_name'];
       $type = $_FILES['file']['type'];
       $name = $_FILES['file']['name'];
       $size = $_FILES['file']['size'];
    $text = "MIME-Version: 1.0\r\n" .
        "Content-Type: multipart/mixed;\r\n" .
        " boundary=\"{$mime_boundary}\"";
              "--{$mime_boundary}\n" .
        "Content-Type: text/plain; charset=\"iso-8859-1\"\n" .
        "Content-Transfer-Encoding: 7bit\n\n" .
        $text . "\n\n";
              "--{$mime_boundary}\n" .
        "Content-Type: {$type};\n" .
        " name=\"{$name}\"\n" .
        "Content-Disposition: attachment;\n" .
        " filename=\"{$Form_Attachments}\"\n" .
        "Content-Transfer-Encoding: base64\n\n" .
        $data . "\n\n" .
        "--{$mime_boundary}--\n";
    $text = "Application Results:\n\n";
    $space = ' ';
    $line = '
    foreach ($_POST as $key => $value)
    if ($req == '1')
    if ($value == '')
    {echo "$key is empty";die;}
    $j = strlen($key);
    if ($j >= 20)
    {echo "Name of form element $key cannot be longer than 20 characters";die;}
    $j = 20 - $j;
    for ($i = 1; $i <= $j; $i++)
    {$space .= ' ';}
    $value = str_replace('\n', "$line", $value);
    $conc = "{$key}:$space{$value}$line";
    $text .= $conc;
    $space = ' ';
    function heal($str) {
              $injections = array('/(\n+)/i',
              '/(\r+)/i',
              '/(\t+)/i',
              '/(%0A+)/i',
              '/(%0D+)/i',
              '/(%08+)/i',
              '/(%09+)/i'
              $str= preg_replace($injections,'',$str);
              return $str;
    function isInjected($str) {
              $injections = array('(\n+)',
              '(\r+)',
              '(\t+)',
              '(%0A+)',
              '(%0D+)',
              '(%08+)',
              '(%09+)'
              $inject = join('|', $injections);
              $inject = "/$inject/i";
              if(preg_match($inject,$str)) {
                        return true;
              else {
                        return false;
    $allowedExts = array("doc", "docx", "xml", "xls", "xlsx", "pdf");
    $extension = end(explode(".", $_FILES["file"]["name"]));
    if ((($_FILES["file"]["type"] == "application/doc")
    || ($_FILES["file"]["type"] == "application/docx")
    || ($_FILES["file"]["type"] == "application/xml")
    || ($_FILES["file"]["type"] == "application/xls")
    || ($_FILES["file"]["type"] == "application/xlsx")
    || ($_FILES["file"]["type"] == "application/pdf"))
    && ($_FILES["file"]["size"] < 20000)
    && in_array($extension, $allowedExts))
      if ($_FILES["file"]["error"] > 0)
        echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
      else
        echo "Upload: " . $_FILES["file"]["name"] . "<br />";
        echo "Type: " . $_FILES["file"]["type"] . "<br />";
        echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
        echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />";
        if (file_exists("upload/" . $_FILES["file"]["name"]))
          echo $_FILES["file"]["name"] . " already exists. ";
        else
          move_uploaded_file($_FILES["file"]["tmp_name"],
          "upload/" . $_FILES["file"]["name"]);
          echo "Stored in: " . "upload/" . $_FILES["file"]["name"];
    else
      echo "Invalid file";
    mail($emailadd, $subject, $text, 'From: '.$emailadd.'');
    echo '<META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'">';
    ?>

    No trouble at all: http://www.telstra.com.au/account-services/mobile-support/?deviceId=8455#tab-messaging-email 

  • PHP email form checkbox values?

    Hello,
    I'm creating a php email form which part of it consists of a few checkboxes that I need to get the values of. My php knowledge isn't that great therefore I used a tutorial to successfully create the bulk of the form.
    I currently have 7 checkboxes set up as such:
    <input type="checkbox" id="grade_5" name="grade[]" value="Grade 5" />
    Each of these are named "grade[]" to be stored in an array called "grade".
    I know that the values are successfully stored in the array as they show up in the browser when I echo the array.
    $grade = $_POST['grade'];
    $N = count($grade);
    for($i=0; $i < $N; $i++) {
         echo($grade[$i] . " ");
    So, the part I am having trouble with is getting the values to show up in the body of the email.
    $body = "
    Grade Level(s): $grade
    All that is returned in this case is the word "Array" instead of the desired checked grade values.
    Any help is much appreciated! Thank you in advance!
    *Note: All other values (textboxes, selection dropdowns, etc.) are already successfully sent to the email.

    danedmonds wrote:
     All that is returned in this case is the word "Array" instead of the desired checked grade values.
    That's because $grade is an array. If you want to access the values, you need to use a loop. Alternatively, use implode() to turn it into a comma-separated string, like this:
    $grade = implode(', ', $grade);

  • Email form validation

    Having trouble with an email form validation. I have an email
    field that is optional. Therefore, if the user leaves it blank, the
    form should submit. However, I also want to check that if the user
    did fill out the email address, it is valid. I am checking that if
    it does not contain and '@', a '.' or does contain a ',' to give an
    error. Whenever I submit a blank form, it keeps giving error that
    the email address is not valid. Here is my code:
    <cfif (Len(Trim(form.email)) IS 0)>
    <cfif form.email does not contain "@" or form.email does
    not contain "." or form.email contains ",">
    <script language="JavaScript">
    alert("Your email address is not valid. Please correct it
    and resubmit the form.")
    history.back()
    </script>
    <cfabort>
    </cfif>
    </cfif>
    Please assist. Thanks, Lumpia.

    duplicate post

  • Hello, I am trying to build a pizza menu where i can click on a pizza pic or link and than this selction is added to a muse email form, without the users need to retyp it. Anybody know how to do that? thank you for your help Peter

    I would like to know how to add a selection form a website to an muse email form with out the user to having to enter it but only clicking on the selected item. This is for a pizza menu.

    You can try this :
    http://www.qooqee.com/adobe-muse-widgets/astrolabe-muse-menu
    Thanks,
    Sanjit

  • BP address data in  Email form

    Hello,
    When I create a campaign with communication channel as "email", how can I automatically add business partner address data ( Those BP's which are in the target group) when sending emails?
    Is there a standard functionality available?
    thanks in advance.

    Hi,
    You can use the Personalized mail functionality of the CRM for adding BP address in the email form. This is the standard functionality of the CRM 5.0.
    In t code CRMD_EMAIL while creating the text of the mail form drag and drop address attributes from the left hand side Object / Attribute Business partner.
    In Business partner Object you will get all the fields of the Business Partner including Street1 street2 City, POBox etc. Drag and drop these attributes wherever you want on the mail form text.
    Hope this will help.....
    Rgds
    Mallikrjun

  • How can i transfer all my datas and email form old Mac G5 to new iMac ?

    How can i transfer all my datas and email form old Mac G5 to new iMac ?

    Generally Mugration Assistant will suffice importing all Data ito a new user, but you can manually import it...
    Users/YourUserName/Library/Mail
    Users/YourUserName/Library/Mail Downloads
    (Could be a different folder here if you chose such in Mail Prefs)

  • Little help with making an email form.

    can any of you lovely, lovely people point me in the
    direction of a good Dreamweaver CS3 tutorial on how to make an
    email form. Preferably one with a "conform email address" text
    field.
    Thanks all!
    P.S. I have tried looking.

    There is god general training available at www.lynda.com .
    Its $25 a month for online video viewing. The title is called
    Dreamweaver CS3 - Beyond the Basics.
    I also would recommend a free form mail solution like
    www.tectite.com which I have used before. It is more powerful that
    the spry widget in dreamweaver, but is on the server side and not
    the user application side.

  • How can I attach a document to the answering email form?

    How can I attach a document to the answering email form?

    Hi;
    I am not sure what you mean by the answering email form, can you describe a bit more what you are looking to do?  Do you mean the "Email Receipt" that you can set up so the form filler receives an email after submitting their form?
    Thanks,
    Josh

  • Can I create an email form that includes a field for uploading and image?

    I'd like to create an email form in Muse that allows people to submit the usual text but also allows them to browse for and upload an image that would be emailed (attached or inline) to me along with the text.
    Does anyone know if there's a way to do that directly in Muse?
    Thanks.

    Which form?
    Many of the forms are created with LiveCycle ES so it might be possible to edit the form with Acrobat X Professional. If you have the data in an SQL database, you could possibly create a data connection and import the data into the form and save a copy of the completed form. You can also use the Acrobat JavaScript 'importTextData' to import a row of data from a tab delimited data file.
    You might want to talk to other Real Estate professionals to see how they are going do this. If you have a property management program, that program might have an update to perform this task.

  • File as attachment in email form

    hi all,
    It would be a great help for me if any one can help me, how
    to send a file( minimum of 300k ) as attachment through a email
    form created in flex....
    please help me ...
    thanks

    hi all i have got a php code which sends attachments via
    mail..... Please help me how to send the file parameters to the php
    via http service send method.... i am placing the php and flex
    codes here please help Sad
    PHP code
    &lt;?php
    $to = '[email protected]';
    $from = $_POST[email];
    $name = $_POST[&quot;name&quot;];
    $subject = $_POST[&quot;title&quot;];
    $emailMessage = $_POST[&quot;message&quot;];
    $message = &quot;\nFrom: $name\nEmail Address:
    $frommail\nContact Number: $phone\n\n $emailMessage&quot;;
    $message = StripSlashes($message);
    $fileatt = $_FILES['fileatt']['tmp_name'];
    $fileatt_type = $_FILES['fileatt']['type'];
    $fileatt_name = $_FILES['fileatt']['name'];
    $headers = &quot;From: $frommail&quot;;
    if (is_uploaded_file($fileatt)) {
    $file = fopen($fileatt,'rb');
    $data = fread($file,filesize($fileatt));
    fclose($file);
    $semi_rand = md5(time());
    $mime_boundary =
    &quot;==Multipart_Boundary_x{$semi_rand}x&quot;;
    $headers .= &quot;MIME-Version: 1.0\n&quot; .
    &quot;Content-Type: multipart/mixed;\n&quot; .
    &quot;
    boundary=\&quot;{$mime_boundary}\&quot;&quot;;
    $message = &quot;This is a multi-part message in MIME
    format.\n\n&quot; .
    &quot;--{$mime_boundary}\n&quot; .
    &quot;Content-Type: text/html;
    charset=\&quot;iso-8859-1\&quot;\n&quot; .
    &quot;Content-Transfer-Encoding: 7bit\n\n&quot; .
    $message . &quot;\n\n&quot;;
    $data = chunk_split(base64_encode($data));
    $message .= &quot;--{$mime_boundary}\n&quot; .
    &quot;Content-Type: {$fileatt_type};\n&quot; .
    &quot;
    name=\&quot;{$fileatt_name}\&quot;\n&quot; .
    &quot;Content-Transfer-Encoding: base64\n\n&quot; .
    $data . &quot;\n\n&quot; .
    &quot;--{$mime_boundary}--\n&quot;;
    }else echo &quot;File error! &quot;;
    mail($to, $subject, $message,$headers);
    ?&gt;
    Flex code...
    &lt;?xml version=&quot;1.0&quot;
    encoding=&quot;utf-8&quot;?&gt;
    &lt;mx:Application xmlns:mx=&quot;
    http://www.adobe.com/2006/mxml&quot;
    viewSourceURL=&quot;srcview/index.html&quot;
    creationComplete=&quot;init();&quot;&gt;
    &lt;mx:HTTPService id=&quot;httpService&quot;
    url=&quot;
    http://jibysubhash.x10hosting.com/jibysk/sendmail.php&quot;
    method=&quot;POST&quot;&gt;
    &lt;mx:request &gt;
    &lt;name&gt;{txtname.text}&lt;/name&gt;
    &lt;email&gt;{txtemail.text}&lt;/email&gt;
    &lt;phone&gt;{txtphmo.text}&lt;/phone&gt;
    &lt;title&gt;{txtpost.text}&lt;/title&gt;
    &lt;message&gt;{txtcover.text}&lt;/message&gt;
    &lt;/mx:request&gt;
    &lt;/mx:HTTPService&gt;
    &lt;mx:Script&gt;
    &lt;![CDATA[
    private var file:FileReference = new FileReference();
    private function init():void
    file.addEventListener(Event.SELECT, selectHandler);
    private function selectHandler(event:Event):void
    private function browse(event:MouseEvent):void
    var filefilter:FileFilter = new FileFilter(&quot;Resume
    Files&quot;,
    &quot;*.zip;*.doc;*.pdf;*.txt;*.rar;*.docx&quot;);
    file.browse([filefilter]);
    ]]&gt;
    &lt;/mx:Script&gt;
    &lt;mx:Panel id=&quot;panel1&quot;
    width=&quot;691&quot; height=&quot;665&quot;
    layout=&quot;absolute&quot; title=&quot;Apply for the
    job&quot; &gt;
    &lt;mx:Form x=&quot;0&quot;
    y=&quot;0&quot;&gt;
    &lt;mx:FormItem fontWeight=&quot;bold&quot;
    color=&quot;#000000&quot; id=&quot;nam&quot;
    label=&quot;Name : &quot;&gt;
    &lt;mx:TextInput width=&quot;354&quot;
    height=&quot;20&quot; id=&quot;txtname&quot;
    /&gt;
    &lt;/mx:FormItem&gt;
    &lt;mx:FormItem fontWeight=&quot;bold&quot;
    color=&quot;#000000&quot; id=&quot;mail&quot;
    label=&quot;Email : &quot;&gt;
    &lt;mx:TextInput width=&quot;354&quot;
    height=&quot;20&quot; id=&quot;txtemail&quot;
    /&gt;
    &lt;/mx:FormItem&gt;
    &lt;mx:FormItem fontWeight=&quot;bold&quot;
    color=&quot;#000000&quot; id=&quot;phone&quot;
    label=&quot;Phone/mobile : &quot;&gt;
    &lt;mx:TextInput width=&quot;354&quot;
    height=&quot;20&quot;
    id=&quot;txtphmo&quot;/&gt;
    &lt;/mx:FormItem&gt;
    &lt;mx:FormItem fontWeight=&quot;bold&quot;
    color=&quot;#000000&quot; id=&quot;post&quot;
    label=&quot;Post applied : &quot;&gt;
    &lt;mx:TextInput width=&quot;477&quot;
    height=&quot;20&quot; enabled=&quot;false&quot;
    editable=&quot;false&quot; id=&quot;txtpost&quot;
    text=&quot;test mail&quot;/&gt;
    &lt;/mx:FormItem&gt;
    &lt;mx:FormItem fontWeight=&quot;bold&quot;
    color=&quot;#000000&quot; id=&quot;upload&quot;
    label=&quot;Upload resume : &quot;&gt;
    &lt;mx:Button label=&quot;Browse&quot;
    id=&quot;bro&quot;
    click=&quot;browse(event);&quot;/&gt;
    &lt;/mx:FormItem&gt;
    &lt;mx:FormItem fontWeight=&quot;bold&quot;
    color=&quot;#000000&quot; id=&quot;cover&quot;
    label=&quot;Cover Letter : &quot;&gt;
    &lt;mx:TextArea width=&quot;507&quot;
    height=&quot;350&quot;
    id=&quot;txtcover&quot;/&gt;
    &lt;/mx:FormItem&gt;
    &lt;mx:FormItem label=&quot; &quot; &gt;
    &lt;mx:Button label=&quot;Send&quot;
    id=&quot;applynow&quot;
    click=&quot;httpService.send();&quot; /&gt;
    &lt;/mx:FormItem&gt;
    &lt;/mx:Form&gt;
    &lt;mx:Label x=&quot;210&quot;
    y=&quot;125&quot; text=&quot; &quot;
    maxWidth=&quot;300&quot;
    id=&quot;statuss&quot;/&gt;
    &lt;/mx:Panel&gt;
    &lt;/mx:Application&gt;

  • PHP Email Form is not Emailing

    HI,
    I made a PHP email form and i was wondering if i did it
    correct. I try to send a email but for some reason it wont work
    here is the PHP code:
    <?php
    $emailSubject = 'Computer Question!';
    $webMaster = '[email protected]';
    $nameField = $_POST ['name'];
    $phoneField = $_POST ['phone'];
    $emailField = $_POST ['email'];
    $questionField = $_POST ['question'];
    $body = <<<EOD
    <br><hr><br>
    Name: $name <br>
    Phone: $phone <br>
    Email: $email <br>
    Question: $question <br>
    EOD;
    $headers = "From: $email\r\n";
    $headers .="Content=type: text/html\r\n";
    $success = mail($webMaster, $emailSubject, $body, $headers);
    /* Results Rendered as HTML */
    $theResults = <<<EOD
    ?>
    Here is the Email form:
    :<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    <body>
    <form id="form1" name="form1" method="post"
    action="Contact form 505 test 2.php">
    <table width="70%" border="1" cellpadding="6">
    <tr>
    <th width="16%" scope="col"><div align="right">
    <label for="name">Name:</label>
    </div></th>
    <th width="84%" scope="col"><div align="left">
    <input name="name" type="text" id="name" size="35"
    maxlength="60" />
    </div></th>
    </tr>
    <tr>
    <th scope="row"><div align="right">
    <label for="phone ">Phone Number</label>
    </div></th>
    <td><div align="left">
    <input name="phone " type="text" id="phone " size="35"
    maxlength="13" />
    </div></td>
    </tr>
    <tr>
    <th scope="row"><div align="right">
    <label for="email">Email:</label>
    </div></th>
    <td><div align="left">
    <input name="email" type="text" id="email" size="35"
    maxlength="40" />
    </div></td>
    </tr>
    <tr>
    <th scope="row"><div align="right">
    <label for="question">Question:</label>
    </div></th>
    <td><div align="left">
    <textarea name="question" cols="26" rows="8"
    id="question"></textarea>
    </div></td>
    </tr>
    <tr>
    <th scope="row"> </th>
    <td><label for="Send Email"></label>
    <input type="submit" name="Send Email" id="Send Email"
    value="Submit" /></td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    Any help would be appreciated!
    thanks

    .oO(jumpman310)
    > I made a PHP email form and i was wondering if i did it
    correct. I try to send
    >a email but for some reason it wont work here is the PHP
    code:
    Next time please be more specific. "won't work" isn't really
    helpful.
    Anyway, the first thing to fix is the error reporting on your
    testing
    server, obviously it's not configured properly. In your
    php.ini these
    directives have to be set:
    error_reporting = E_ALL|E_STRICT
    display_errors = on
    You should get some notices from your script. After fixing
    those issues,
    you should also read about header injection and how to
    prevent it. Your
    script is vulnerable and can be abused for sending spam. Also
    consider
    to use a class like PHPMailer to make things more secure and
    convenient.
    Some further notes about your form markup:
    * It's very good that you make use of labels for your form
    controls, but
    in some cases the IDs of these controls contain spaces, which
    is not
    allowed.
    * You don't really need a label for a submit button.
    * Consider to drop all those div elements in the table
    headers - you
    don't need them. Use CSS to style the labels the way you
    want, e.g.
    form th {text-align: right}
    I also use this:
    label:hover {outline: 1px dotted #666}
    * Check the markup of the "Name" row. The 'scope' attribute
    is incorrect
    and the form control should be inside a 'td', not a 'th'.
    Micha

  • Need help adapting David Powers PHP email form script please!

    Hi all,
    I'm fairly inexperienced with PHP and I'm trying to adapt the David Powers email form script from THE ESSENTIAL GUIDE TO DREAMWEAVER CS4 WITH CSS, AJAX, AND PHP.
    I've created a basic form so that visitors to the site can request a telephone call back from the site owner. The form asks the visitor for their name, telephone number and to select a time of day suitable for the telephone call to be made using radio buttons selecting between morning and afternoon.
    I'd like to achieve my goal with minimal validation error messages and would like to redirect to another page when a message is sent successfully. It is also important that in the spirit of the David Powers script I'm trying to work with, that it filters out suspect input, avoids email header injection attacks and blocks submission by spam bots.
    There may be a really simple solution to this since I don't want users to be able to enter an email address at all but I don't know enough to be able to figure it out just yet.
    I'd be grateful for any advice.
    See below for the code for the form including PHP so far...
    Thanks to everyone looking in in advance
    Karl.

    GEAtkins wrote:
    > I am using the redirect to a personal page from page 515
    of The Essential
    > Guide to DWCS3 in the following form:
    $_SESSION[MM_Username].php in the "if
    > login succeeds" field.
    Thank you for reminding me. There's a mistake in the book,
    which I
    discovered over the Christmas period, so forgot to send to
    friends of ED
    for the errata page.
    Don't use $_SESSION[MM_Username]. Use $loginUsername instead.
    It then works.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Email address on Portal page incorrectly copied into email form

    I have a 'staff directory' on a Portal page that contains email addresses. Upon clicking on an email address an email form pops up. However, the email address in the TO: line sometimes reflects the email address correctly, and sometimes it repeats characters from the email address - that is, my email address might be correctly copied in as Caryn@mail or incorrectly copied in as Caryncaryn@mail.
    Any help or ideas would be greatly appreciated!!

    So called e-mail obfuscation scripts may work up to a point, but client side scripts are easily defeated by turning off JavaScript.   Also, e-mail links don't work for everyone. With so many people using web mail (yahoo, hotmail, g-mail, etc...) instead of e-mail software, they may not have an e-mail client on their device.
    For many reasons, a contact form with a form to email processing script that has built-in spam protection is the way to go.
    If your server supports PHP, this script from DBMasters is good.
    http://dbmasters.net/index.php?id=4
    Tectite
    http://www.tectite.com/formmailpage.php
    Forms to Go from Bebosoft (script generating software)
    http://www.bebosoft.com/products/formstogo/overview/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

Maybe you are looking for