A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: PHP form problems for flash 8

  1. #1
    Junior Member
    Join Date
    May 2006
    Posts
    3

    PHP form problems for flash 8

    I'm having problems with the info posted from a flash based php form.

    I've recently upgraded to flash 8 and the form used to work fine in previous versions.

    I need to use flash 8 for the text readiblity aspect.

    Now publishing my flash movie as flash 8, when i get a message sent from the website I get the following details in the email:

    (Where it say 'text required is the actual input text from the site)



    Name: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Swis721 Lt BT\" SIZE=\"22\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\">text required</FONT></P></TEXTFORMAT>
    Address: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Swis721 Lt BT\" SIZE=\"22\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\">text required</FONT></P></TEXTFORMAT>
    Email: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Swis721 Lt BT\" SIZE=\"22\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\">text required</FONT></P></TEXTFORMAT>
    Phone: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Swis721 Lt BT\" SIZE=\"22\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\">text required</FONT></P></TEXTFORMAT>
    Enquiry: <TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Swis721 Lt BT\" SIZE=\"22\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\"></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING=\"2\"><P ALIGN=\"LEFT\"><FONT FACE=\"Swis721 Lt BT\" SIZE=\"22\" COLOR=\"#333333\" LETTERSPACING=\"0\" KERNING=\"0\">text required</FONT></P></TEXTFORMAT>

    Basically I just need the 'input text' and the fields i.e Name = , email = ect.
    to get sent without all of the KERNING, COLOR, FONT FACE ect..

    Heres the PHP code I've been using:

    $message = "Title: " . $title . "\n";
    $message = "Name: " . $name . "\n";
    $message .= "Address: " . $address . "\n";
    $message .= "Email: " . $email . "\n";
    $message .= "Phone: " . $telephone . "\n";
    $message .= "Enquiry: " . $enquiry . "\n";

    Any ideas???

    Cheers,

    Nath

  2. #2
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    1.) Select the textfield in Flash.

    2.) Uncheck the "Render As HTML" button in the properties panel.

    If that is not applicable for some reason make sure that you use textfields with instancenames and pull the text out of it's text property before sending it to the PHP.

    /Mirandir

  3. #3
    Junior Member
    Join Date
    May 2006
    Posts
    3
    Thanks Mirandir.

    I've checked the "render as htnl" and this is already unchecked so I've given each textbox an instance name aswell as the variable name (which I had already done) but still no joy, but now I get the text "_level0.title" ect for each textbox. I was a bit confused as to what you meant by "pull the text out of it's text property"?

    Heres the link to the site (its the contact page):
    http://www.bonnelocation.co.uk/

    Thanks,

    Nathan

  4. #4
    Senior Member
    Join Date
    Aug 2002
    Location
    Southampton, UK
    Posts
    125
    I'm getting exactly the same problem... has anyone resolved this issue or can provide an answer?

    Thanks, Steve

  5. #5
    Junior Member
    Join Date
    May 2006
    Posts
    3

    Resolved

    Hi Steve,

    I resolved the problem by giving each of my text fields an instance name.

    Nath

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