A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: PHP Script needed for a mail form

  1. #1
    Hi, i have just made a email form in MX, however my web host wont allow me to run perl scripts and have been told to use PHP.

    Has anyone out there allready got a suitable script that i could please use. Its just a simple form with name, email, phone, company and message.

    Many thanks

  2. #2
    Senior Member
    Join Date
    Jun 2002
    < ?php
    $yourEmailVar = "yourEmail@yourSite.com";
    $subjectVar = "Form feedback";
    $mailMessageVar = "
    name: $nameVar
    email: $emailVar
    phone: $phoneVar
    company: $companyVar
    message: $messageVar
    ipAddress: $_SERVER['REMOTE_ADDR']";
    mail($yourEmailVar, $subjectVar, $mailMessageVar, "FROM: $nameVar");

    That simple, wrote that just now...

  3. #3
    Hiya many thanks that is greatly appreciated.
    Will give it a go now. :-)

  4. #4
    Hi please excuse me for obviously being thick, but i cant get it to work.

    I have wrote it out in a text file and called it form.php and have used the get url action when clicking on the submit button. Which i use the POST variables.

    Any ideas what im doing wrong?

    Many thanks

  5. #5
    Senior Member
    Join Date
    Jun 2002
    No problem, but what you need to send to the form.php is this:


    There are two ways to do this;


    getURL("www.yourSite.com/form.php, "targetFrameOrWindow", "GET");


    getURL("www.yourSite.com/form.php?nameVar="+formVName+"&emailVar="+formVEma il+"&phoneVar="+formVPhone+"&company="+formVCompan y+"&messageVar="+formVMessage, "targetFrameOrWindow");

    Do you get it?

    If not don't be affraid to ask,

    "Ignorance is not bliss, it's a plague" -Cache

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center