CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2007
    Posts
    1

    Looking for free form submit php script?

    Looking for free form submit php script?

    Suggest me free form submit php script i want to use in my sites.



    Tapan Sant
    Director of ITMatchOnline-Outsourcing Portal.
    Last edited by tapansant; February 1st, 2007 at 10:55 AM.

  2. #2
    Join Date
    Dec 2004
    Posts
    438

    Re: Looking for free form submit php script?

    Sorry but could you please elaborate? It's not very clear what you need to be able to do with PHP.

    Edited: Forms are submitted using HTML submit buttons or javascript to do the same thing. These things are client-side (meaning the user side) but PHP is server-side so it cannot submit a form, only receive data sent from one.
    Last edited by Nibinaear; February 9th, 2007 at 04:33 AM.

  3. #3
    Join Date
    Aug 2006
    Location
    Dallas, TX
    Posts
    47

    Re: Looking for free form submit php script?

    Think he's asking for a premade php form for submitting data. Don't think there are any premade 1's out there. And i don't think anyone here will code the form for you.

  4. #4

    Re: Looking for free form submit php script?

    Don't mix the concepts:
    The form is HTML, Javascript submits the form and PHP manipulates the content of the form on the server. There's no PHP form, unless it's generated by it.

    Just do it yourself, it's fun. Depending on the level of the complexity, it is almost always the same. It begins with:

    Code:
     
    <SCRIPT Language="JavaScript">
    function TellJavaScripttoCallServerSideScript()
    {
    ...
    document.form.submit(); 
    }
    </SCRIPT>
    <form name="form" action="GiveMeSomeHTMLResult.php" method="post" target="_self">
    ...
    <INPUT TYPE="BUTTON" ONCLICK="TellJavaScripttoCallServerSideScript();"
    </form>
    David Domingues at webrickco@gmail.com. Feel free to visit http://www.webrickco.com

  5. #5
    Join Date
    Nov 2004
    Location
    Slough, UK
    Posts
    184

    Re: Looking for free form submit php script?

    Quote Originally Posted by davidc2p
    Don't mix the concepts:
    The form is HTML, Javascript submits the form and PHP manipulates the content of the form on the server. There's no PHP form, unless it's generated by it.

    Just do it yourself, it's fun. Depending on the level of the complexity, it is almost always the same. It begins with:

    Code:
     
    <SCRIPT Language="JavaScript">
    function TellJavaScripttoCallServerSideScript()
    {
    ...
    document.form.submit(); 
    }
    </SCRIPT>
    <form name="form" action="GiveMeSomeHTMLResult.php" method="post" target="_self">
    ...
    <INPUT TYPE="BUTTON" ONCLICK="TellJavaScripttoCallServerSideScript();"
    </form>
    Why submit it with Javascript when you can do it with HTML?

    tapansant: do it yourself and when you hit a problem post here.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || ClickOnline ||

    Did I ever say I was an expert?

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Please mark threads resolved by going to the thread tools menu and clicking the Mark Thread Resolved button.

    Has a post really helped you? Please Rate it.

  6. #6
    Join Date
    Dec 2004
    Posts
    438

    Re: Looking for free form submit php script?

    Quote Originally Posted by visualAd
    Why submit it with Javascript when you can do it with HTML?
    Sometimes you need to submit using Javascript. For example, you might need to do some javascript validation and if there are no problems then submit the form.

  7. #7
    Join Date
    Nov 2004
    Location
    Slough, UK
    Posts
    184

    Re: Looking for free form submit php script?

    Quote Originally Posted by Nibinaear
    Sometimes you need to submit using Javascript. For example, you might need to do some javascript validation and if there are no problems then submit the form.
    You should use the submit event of the form to do that, not a button. If Javascript is disabled on the client there is no way the user can submit the form and validation should always be done on the server as well as the client.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || ClickOnline ||

    Did I ever say I was an expert?

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Please mark threads resolved by going to the thread tools menu and clicking the Mark Thread Resolved button.

    Has a post really helped you? Please Rate it.

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

Featured