The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Posting Forms

Discussion in 'General Discussion' started by Flashbond, Jul 11, 2009.

  1. Flashbond

    Flashbond Registered

    Joined:
    Jul 11, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Dear Guys,

    I am so sorry but I am a very old-school guy who can only work flash and html.

    I am trying to create a message form page with flash but I don't know .cgi extension of the cPanel server. I found a guy who made this with .php but I couldn't succeed to modify it. I am sending my "send button" flash actionscript and .php text of that guy. Please tell me what to do, or if there is easier way, feel comfortable to be like explaining to an idiot:eek:

    [​IMG]

    Code:
    label_01 = "Your Message";
    label_02 = "Your Name";
    label_03 = "Your E-Mail";
    text1 = label_01;
    text2 = label_02;
    text3 = label_03;
    this.onEnterFrame = function ()
    {
        text_field_1.onSetFocus = function ()
        {
            if (text1 == label_01)
            {
                text1 = "";
            } // end if
        };
        text_field_1.onKillFocus = function ()
        {
            if (text1 == "")
            {
                text1 = label_01;
            } // end if
        };
        text_field_2.onSetFocus = function ()
        {
            if (text2 == label_02)
            {
                text2 = "";
            } // end if
        };
        text_field_2.onKillFocus = function ()
        {
            if (text2 == "")
            {
                text2 = label_02;
            } // end if
        };
        text_field_3.onSetFocus = function ()
        {
            if (text3 == label_03)
            {
                text3 = "";
            } // end if
        };
        text_field_3.onKillFocus = function ()
        {
            if (text3 == "")
            {
                text3 = label_03;
            } // end if
        };
    };
    [​IMG]

    Code:
    on (release) {
    	if (subject eq "" or  from eq "" or message eq "" ) {
    		stop();
    	} else {
    		lineAdapt();
    		loadVariablesNum("mail.php3", 0, "POST");
                 }
    }
    PHP

    PHP:
    <?php
    mail
    ("kaz_aam@yahoo.com"$subject"From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/"$message phpversion());
    ?>

    Thanks for your help guys!!!
     
    #1 Flashbond, Jul 11, 2009
    Last edited: Jul 13, 2009
  2. Flashbond

    Flashbond Registered

    Joined:
    Jul 11, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    any help please?
     
  3. Flashbond

    Flashbond Registered

    Joined:
    Jul 11, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Posting Form Problem

    Dear Guys,

    I am so sorry but I am a very old-school guy who can only work flash and html.

    I am trying to create a message form page with flash but I don't know .cgi extension of the cPanel server. I found a guy who made this with .php but I couldn't succeed to modify it. I am sending my "send button" flash actionscript and .php text of that guy. Please tell me what to do, or if there is easier way, feel comfortable to be like explaining to an idiot:eek:

    [​IMG]

    Code:
    label_01 = "Your Message";
    label_02 = "Your Name";
    label_03 = "Your E-Mail";
    text1 = label_01;
    text2 = label_02;
    text3 = label_03;
    this.onEnterFrame = function ()
    {
    text_field_1.onSetFocus = function ()
    {
    if (text1 == label_01)
    {
    text1 = "";
    } // end if
    };
    text_field_1.onKillFocus = function ()
    {
    if (text1 == "")
    {
    text1 = label_01;
    } // end if
    };
    text_field_2.onSetFocus = function ()
    {
    if (text2 == label_02)
    {
    text2 = "";
    } // end if
    };
    text_field_2.onKillFocus = function ()
    {
    if (text2 == "")
    {
    text2 = label_02;
    } // end if
    };
    text_field_3.onSetFocus = function ()
    {
    if (text3 == label_03)
    {
    text3 = "";
    } // end if
    };
    text_field_3.onKillFocus = function ()
    {
    if (text3 == "")
    {
    text3 = label_03;
    } // end if
    };
    };
    [​IMG]

    Code:
    on (release) {
    if (subject eq "" or from eq "" or message eq "" ) {
    stop();
    } else {
    lineAdapt();
    loadVariablesNum("mail.php3", 0, "POST");
    }
    }
    PHP

    Code:
    <?php
    mail("kaz_aam@yahoo.com", $subject, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/", $message . phpversion());
    ?>

    Thanks for your help guys!!!
     
  4. Flashbond

    Flashbond Registered

    Joined:
    Jul 11, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Posting Form Problem

    Dear Guys,

    I am so sorry but I am a very old-school guy who can only work flash and html.

    I am trying to create a message form page with flash but I don't know .cgi extension of the cPanel server. I found a guy who made this with .php but I couldn't succeed to modify it. I am sending my "send button" flash actionscript and .php text of that guy. Please tell me what to do, or if there is easier way, feel comfortable to be like explaining to an idiot:eek:

    [​IMG]

    Code:
    label_01 = "Your Message";
    label_02 = "Your Name";
    label_03 = "Your E-Mail";
    text1 = label_01;
    text2 = label_02;
    text3 = label_03;
    this.onEnterFrame = function ()
    {
    text_field_1.onSetFocus = function ()
    {
    if (text1 == label_01)
    {
    text1 = "";
    } // end if
    };
    text_field_1.onKillFocus = function ()
    {
    if (text1 == "")
    {
    text1 = label_01;
    } // end if
    };
    text_field_2.onSetFocus = function ()
    {
    if (text2 == label_02)
    {
    text2 = "";
    } // end if
    };
    text_field_2.onKillFocus = function ()
    {
    if (text2 == "")
    {
    text2 = label_02;
    } // end if
    };
    text_field_3.onSetFocus = function ()
    {
    if (text3 == label_03)
    {
    text3 = "";
    } // end if
    };
    text_field_3.onKillFocus = function ()
    {
    if (text3 == "")
    {
    text3 = label_03;
    } // end if
    };
    };
    [​IMG]

    Code:
    on (release) {
    if (subject eq "" or from eq "" or message eq "" ) {
    stop();
    } else {
    lineAdapt();
    loadVariablesNum("mail.php3", 0, "POST");
    }
    }
    PHP

    Code:
    <?php
    mail("kaz_aam@yahoo.com", $subject, "From: PHPMailer\nReply-To: $from\nX-Mailer: PHP/", $message . phpversion());
    ?>

    Thanks for your help guys!!!
     
  5. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    This forum is for system administrators and developers who are looking to extend the functionality of the cPanel software itself.

    Your issue would better be addressed by a PHP help forum since it is not a cPanel-specific issue. Feel welcome to do an internet search for "PHP help" to find some of these other forums.
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    ** Merged Multiple Duplicate Threads **
     
Loading...

Share This Page