Results 1 to 8 of 8

Thread: Form Code without using a website like Freedback?

  1. #1
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default Form Code without using a website like Freedback?

    Ok I would like to make a form that people can fill out to apply to be affiliates on my site. However right now i am using Freeback. Its a website that generates a form code. But, I dont want to use a site like that I want to make a form code like this: http://pastelsmash.com/more .

    Is there a code i can use not generated by a website? I would like to make a form with more felxability. Thanks

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Yes... You'll need php or a server side language. If its like the 3 input field I could make you one or give you an example that you could go from. Is the form just emailing to your account? My example will be in php. Php work's with html so you won't have to redo your whole page either.

  3. #3
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default

    yea I just want a simply form that would be sent to my email address and yea all my pages are .php

  4. #4
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    Give this a try then...
    EDIT this is for input fields named name,email, and question and from the method post and then change the action to the name of this file.php
    PHP Code:
    <?php
    $visitor 
    $_POST['name'];
    $visitormail $_POST['email'];
    $notes $_POST['question'];

    if(!
    $visitormail == "" && (!strstr($visitormail,"@") || !strstr($visitormail,".")))
    {
    echo 
    "<h2>The e-mail address you entered was not correct.</h2>\n";
    die (
    "<br />Your question has not been submitted. This page will bring you back<br />in 20 seconds or you may use your browsers back menu to resubmit.\n</div>
    </div>
    </body>
    </html>"
    );
    }
    if(
    $notes == "Questions about traveling, financial assistance, or why we do what we do ask them here..."
    {
    echo 
    "Please enter your Question. In the question field";
    die (
    "<br />You may use your browsers back button or this page will bring you back in 20 seconds.</div>
    </div>
    </body>
    </html>"
    );
    }


    if(empty(
    $visitor) || empty($visitormail) || empty($notes )) {
    echo 
    "<br />Please Fill in all of the information.\n";
    die (
    "<br />You may use your browsers back button or this page will bring you back in 20 seconds.</div>
    </div>
    </body>
    </html>"
    );
    }
    $sendata="Email Address to respond to:"$visitormail;
    $q="Question from "$visitor " "$notes "Submitted:" $todayis ;
    $todayis date("l, F j, Y, g:i a") ;
    $attn $attn ;
    $subject "Question from website";
    $notes stripcslashes($notes);
    $message $todayis [EST] \n
    From: 
    $visitor ($visitormail)\n
    "
    ;

    $from "From: $visitormail\r\n";


    mail("LOGINNAME@MAILSITE"$subject$sendata$q);
    ?>
    Last edited by bluewalrus; 12-24-2008 at 01:32 AM.

  5. #5
    Join Date
    Nov 2008
    Posts
    19
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Default

    Hi IllustriousLyts, I have a contact form you could use, check it out at http://www.owt200x.us/contactform

    I can change the fields to whatever you need, if you need it customized. If you already have a form template I can use that to add my formprocessing code into it.

    Let me know what you need

    Barry "OwT"

  6. #6
    Join Date
    Apr 2007
    Posts
    28
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I used to have a page which contains free downloads in my site
    I cancelled it now, however, here is the URL anyway
    http://www.yavrim.com/downloads/
    The links are still active
    It uses PHP by the way
    Simply, download the one you want and alter it

  7. #7
    Join Date
    Nov 2008
    Location
    Missouri
    Posts
    13
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Default

    I'm also working on an affiliate sign up form and was wondering can I just use the sign up form in a way that I don't have to use my CGI bin? I was hoping I could set it up to were it would go into my email. Is that an option?

  8. #8
    Join Date
    Nov 2008
    Posts
    19
    Thanks
    1
    Thanked 3 Times in 3 Posts

    Default form to email

    Quote Originally Posted by Learning PHP View Post
    I'm also working on an affiliate sign up form and was wondering can I just use the sign up form in a way that I don't have to use my CGI bin? I was hoping I could set it up to were it would go into my email. Is that an option?
    I could use my form processing code from http://owtphpform.co.cc to either use your template, or my contact form demo template (which is teh same as the download) if you'd like.

Bookmarks

Posting Permissions

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