Results 1 to 3 of 3

Thread: Trouble with a form.. [resolved]

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255

    Trouble with a form.. [resolved]

    PHP Code:
    function showPostNews()
    {
      
    $font="<font face=tahoma size=2 color=#FFFFFF>";
      echo 
    "</center \><form action='index.php?page=postn' action='post' \>" .
           
    "$font Title: <input type=text name=title \><br \>" .
           
    "$font Content: <textarea cols='90' rows='10' name='contents' /></textarea \><br \>" .
           
    "$font Access Level*: <input type=text name=acclvl \><br \>" .
           
    "<input type=submit value=\"Post News\" \>";

    I'm invoking the function like this:
    PHP Code:
      case "postnews":
        
    showPostNews();
        break; 
    No matter what I do (and only for this 1 form), the form tries to pass the data via the url and not via post.
    Last edited by R.a.B.B.i.T; Aug 6th, 2004 at 07:20 PM.

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    This:
    Code:
    <form action='index.php?page=postn' action='post' >
    Should be this:
    Code:
    <form action='index.php?page=postn' method='post' >
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

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

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255
    Ooo...silly me..

    Why I did that I'll never know...thanks.

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