Thread: HTML FORM HELP

    #1
  1. No Profile Picture
    tigertim
    Guest
    Devshed Newbie (0 - 499 posts)
    I am using html and php to put input from an html form, I am using<form enctype="multipart/form-data" method="post" action="<?php echo $PHP_SELF ?> but it is not working, I keep getting the error "URL cannot be found, can anyone please help.

    Thank you
    Tim
  2. #2
  3. No Profile Picture
    Goral
    Guest
    Devshed Newbie (0 - 499 posts)
    Try this example, it worked for me just fine:
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
    <html>
    <body>
    <form action="<? echo $PHP_SELF ?>" method=post>
    <input type=text name=something size=20>
    <input type=submit name=ok value=ok>
    </form>
    <?
    if ($HTTP_POST_VARS):
    print "Values submitted via POST method:<br>";
    while (list($key, $val) = each($HTTP_POST_VARS)) { echo "$key => $val<br>";}
    endif;
    ?>
    </body>
    </html>
    [/quote]

    Goral

Similar Threads

  1. HELP Editing database through HTML form
    By kashaf in forum PHP Development
    Replies: 2
    Last Post: February 12th, 2004, 12:17 PM
  2. Replies: 9
    Last Post: January 29th, 2004, 08:33 AM
  3. How to get client email??Help plz
    By Gecko22 in forum ASP Programming
    Replies: 12
    Last Post: January 22nd, 2004, 02:40 PM
  4. not returning records when it should
    By aliaga61 in forum ASP Programming
    Replies: 3
    Last Post: January 16th, 2004, 11:57 AM
  5. 'Object required' error
    By aliaga61 in forum ASP Programming
    Replies: 1
    Last Post: January 16th, 2004, 09:48 AM

IMN logo majestic logo threadwatch logo seochat tools logo