Web Analytics Made Easy -
StatCounter Help Me Plz,am Befor the Beginner :$ - CodingForum


No announcement yet.

Help Me Plz,am Befor the Beginner :$

  • Filter
  • Time
  • Show
Clear All
new posts

  • Help Me Plz,am Befor the Beginner :$

    HI everbody
    am new user here
    and i realy tried alot of ways to make cgiemail and i did not succeed
    and iam beginner in these things
    all what i want is the following:
    i will make form with 2 inputs,and one command bottom (send)
    when any user check this form and put the data inside this 2 inputs
    and then press over the command bottom,these data the user put them i want form to send me them to an e-mail address i choose
    so if u plz give me the form and a good free webhosting to upload the cgi script on it, am before the beginner status,but if u told me how to do clearly and step by step and a gr8 student i can understand directly
    wish all of u tell me your experiences to me to know how to make it
    thanks alot and am waiting your replies

    when the user check my form and press over the command bottom,i dont want the data he/she entered to appear in another page,i want when he/she press over the command bottom take it to url i define it for the script
    Mess With The Best.... Die Like The Rest

  • #2
    Have you come up with any code on your own? I'm not totally thrilled about writing code that I"m not getting paid for. But here are a couple things that will help you along your way:


    (thanks Fishmonger, I stole the first two from a previous thread )

    There are also several threads on this forum already about the subject. Let us know what you come up with. (If you want someone to write it for you www.rentacoder.com I think is a good address)

    Edit: It seems I mis-understood what you were saying as well. What I was looking for at the time was examples of what you are using currently etc. I figured you wanted us to write it for you. My fault.
    Last edited by Aradon; Aug 1, 2005, 02:54 PM.
    "To iterate is human, to recurse divine." -L. Peter Deutsch


    • #3
      look as i told u
      if u want cgi script i have alot
      but i dnt know what to do with them
      if u dnt care for helping me then dnt come and say i will not write a code for you,u dnt know what help means?
      so if u dnt want to help,no need to post any reply anymore in my subject,others will do,and i know there are alot of good people who help others just for they are great people not for gain money
      Mess With The Best.... Die Like The Rest


      • #4
        guys i have these scripts
        one i brought it from here and the other i downloaded it from another website
        so anyone want realy to help me and teach me i will be very thanks for him or her

        1st Script

        2nd Script
        Mess With The Best.... Die Like The Rest


        • #5
          eXe ...

          Here is a place where you can host for free w/Perl (cgi-bin), PHP.

          "Free" means that it's free, but every page has a fixed ad banner at the top.



          You need to know how to do these things:

          1) Use an FTP program to upload your scripts into your cgi-bin directory.
          2) How to set script permissions using the FTP program (CHMOD).

          Netfirms has a help section on using FTP, your cgi-bin, etc.


          Once you get that set up, run this script to see if it works. It's a simple
          "Hello World" script that tests the function of your cgi-bin.

          use strict;
          use CGI;
          use CGI::Carp qw(fatalsToBrowser);
          my $query = new CGI;
          my $date = localtime();
          print $query->header();
          print "
             <title>The Famous Hello World Example ;-)</title>
           <body bgcolor=\"\#fffcc9\">
           <h1>The Famous Hello World Example </h1>
           <p> The date is $date </p>
          <hr  noshade=\"noshade\";>
          If you can get that script to run without any errors in loading, CHMOD, etc.
          let us know ... we can't help you unless you can do this basic task.

          Google is your best method to get help: Search for "Perl tutorial".

          EDIT: eXe ... this is not a chatroom. You can type using full English
          words and sentences. I'm having a hard time reading your posts. I'm
          44 years old and can't read chatroom slang.

          Last edited by mlseim; Aug 1, 2005, 02:37 PM.


          • #6
            The NMS FormMail script is an excellent script but overkill for what you need, especially considering that you are a beginner. I wouldn’t even consider using the BizMail script; not only is it overkill but it’s NOT written very well.

            In your case, I’d start out with something very simple and once you build up a little more knowledge and require the need, you can switch over to the NMS FormMail script. Aradon provided you with good info that shows you how to do this, so you should look at those links.

            mlseim's example is a good starting point.


            • #7
              I don't think that is chatroom slang. I think the poster has a native language other than English. Any slang in there was probably derived from online conversations with an English speaking person.


              • #8
                thnx my bro mlseim
                1st of all for people who say that am not english,yeah am not english person
                and if you are with apartheid (netroact)
                anyway, iam using internet from 5 years and i have knolege in computer
                but in webprograming and zero,but i know html,not professional but i can make pages and also without frontpage,with coding over notepad
                so my bro mlseim,i have already two accounts over netfirms
                and i've uploaded the script but they said contact the customer
                i will save the code u wrote as cgi script and upload it,then call it from any browser?
                or what to do with it?
                u got what i need from the form i want to make?
                plz if u want contact me at My Messenger
                and realy thanks for your help
                Mess With The Best.... Die Like The Rest


                • #9
                  by the way i have these two FTP programs to upload and i know how to CHMOD,1st program is : cuteftppro 2nd program is : WSFTP_ProT40_Install

                  so i wish you can tell me how,i will tell you gain what i want the cgi script to do:

                  i want to put the cgi script in my form html coding like :
                  <form method=POST action="http://xxx.netfirms.com/cgi-bin/mailform.cgi">
                  <input type="hidden" name="CMD" value="CMDSubmitFormElement">
                  <input type="hidden" name="FORM_SUBMIT_EMAIL_submit" value="[email protected]">

                  when he/she press over Submit Command directly the script send me e-mail to my x email inbox with the data,and the script dnt post the data on another page and let the visitor see it,it can direct it to any other page

                  i were using this coding

                  <FORM method=post action="http://hotmail.homestead.com/~site/Scripts_ElementMailer/ElementMailer.dll" target=_top>
                  <input type="hidden" name="CMD" value="CMDSubmitFormElement">
                  <input type="hidden" name="FORM_SUBMIT_EMAIL_submit" value="[email protected]">

                  but there is an error in the server of the website the script found over it

                  now i think the idea is very clear
                  thanks again in helping me mlseim and every one wana help
                  Mess With The Best.... Die Like The Rest


                  • #10
                    mlseim i've just test the small example u gave me and it wrok
                    so whats the other step?
                    by the way,i can creat any html page within the two print tags?
                    after the print $query->header();

                    print "
                    (i mean here)

                    and it must be on the same page the server is

                    but if i want to creat one and put it on another website,so can i? and what is the different in the coding?
                    Mess With The Best.... Die Like The Rest


                    • #11
                      This thread may be able to help you. In particular, Fishmonger's post (the fourth one down the page). Again, read the cpan documentation regarding the mail modules.

                      Best of luck!
                      Last edited by joeframbach; Aug 2, 2005, 01:48 PM.


                      • #12

                        That test script was just to let us know you have your cgi-bin
                        working correctly. You don't need that script anymore, unless you
                        want to play around with it. ... and yes, you can make it display
                        any HTML that you want. A good way to learn about simple dynamic
                        HTML generation.

                        The Perl script opens the browser with it's own HTML ... it is not on
                        a webpage, just displays on the browser.


                        I didn't understand the part about "mailform.cgi".

                        Did you say it is working OK on Netfirms?

                        ... or ... it is failing?


                        • #13
                          A more condensed version of the "Hello World" script.

                          #!/usr/bin/perl -w
                          use strict;
                          use CGI;
                          use CGI::Carp qw(fatalsToBrowser);
                          my $q = new CGI;
                          print $q->header,                                # create the HTTP header
                                 $q->start_html('hello world'),             # start the HTML
                                 $q->h1('Hello World!'),                     # level 1 header
                                 $q->h2('It is now: '. scalar localtime);   # date & time w/ level 2 header
                                 $q->end_html;                               # end the HTML


                          • #14
                            Here's another short example that creates a simple form that is submitted to itself for processing and sending the email. It should include returning a confirmation to the user once submited but I'll leave that up to you work out.

                            use strict;
                            use CGI;
                            use CGI::Carp qw(fatalsToBrowser);
                            use MIME::lite;
                            my $q = new CGI;
                            my %form = $q->Vars;
                            print $q->header, $q->start_html('Who are you');
                            # This is a self refering form/script
                            # meaning, it's submitted to itself
                            print $q->start_form,
                                  'Sex: ', $q->radio_group(-name=>'sex', -values=>['Male','Female']), $q->p,
                                  'First Name: ', $q->textfield('firstname', '', 15, 25), q->br,
                                  'Last Name: ', $q->textfield('lastname', '', 15, 25), '<p>',
                            if ($form{'firstname'} || $form{'lastname'}) {
                               my $message = "First Name: $form{'firstname'}<br>\n".
                                          "Last Name: $form{'lastname'}<br>\n".
                                          "Sex:  $form{'sex'}";
                               my $msg = MIME::Lite->new(
                                         From     => '[email protected]',
                                         To       => '[email protected]',
                                         Subject  => 'Form Submission',
                                         Data     => $message


                            • #15
                              look what i got when i test ur script

                              Software error:
                              Can't locate MIME/lite.pm in @INC (@INC contains: /usr/local/nf/lib/perl5/5.8.3/i386-freebsd /usr/local/nf/lib/perl5/5.8.3 /usr/local/nf/lib/perl5/site_perl/5.8.3/i386-freebsd /usr/local/nf/lib/perl5/site_perl/5.8.3 /usr/local/nf/lib/perl5/site_perl .) at 2.cgi line 4.
                              BEGIN failed--compilation aborted at 2.cgi line 4.

                              For help, please send mail to the webmaster ([email protected]), giving this error message and the time and date of the error

                              whats the problem then?

                              u said that i can put any code for any html
                              so can i put any source code for anypage under the print command? this is 1st

                              2nd:did u understand what i want?
                              and in the coding u said or not u FishMonger wrote From => '[email protected]', , i dont know what to write in it
                              i gave u an example abt a form i were using in my coding webpage
                              <FORM method=post action="http://hotmail.homestead.com/~site/Scripts_ElementMailer/ElementMailer.dll" target=_top>
                              <input type="hidden" name="CMD" value="CMDSubmitFormElement">
                              <input type="hidden" name="FORM_SUBMIT_EMAIL_submit" value="[email protected]">

                              i dnt even have account over homestead website
                              i just put that code in my webpage and when the user press over the command bottom i got e-mail with the data the user put

                              if u did not understand plz mail me or add me and we can talk on the messenger
                              Mess With The Best.... Die Like The Rest