1. I would put an url in the action in you form, for example "$PHPSELF" aka
the same side sending the form.
2. A form field is global on the site receiving the form and can be accessed
like any global variabel.
3. Be aware that the form you wrote doesn't send any value field, it only
has a send button.

example: (sends a hidden field named MyVar)
--------------------------------------------------
<form method=\"post\" action=\"$PHPSELF\">
<input type=hidden name=MyVar value=\"som_value\">
<input type=submit value=\"Daten eintragen\">
</form>
--------------------------------------------------
This sends the value of MyVar to the page itself.
This means that you can do your check like this:

if (isset($MyVar))  {
    echo "Daten wurden eingetragen";
}

Accessing post_vars on the receiving site is like accessing any global
variabel in your script.
You can print it with "echo $MyVar;" or "print($MyVar);" at any given point
on the receiving site.

Hope that helps...

/Aidal


"Oliver Steimer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi there ,
>
> I´m trying PHP and have a problem with with the superglobals.
>
> I use Apache 1.3.27 and php 4.3.1
>
> this is my script:
>
>
> <html>
> <body>
> <?php
>
> if ($_Post['submit'] {
>
> echo (" Daten wurden eingetragen");
>
> }
>
> <form action="" method="post">
> <input type="submit" name="submit" value="Daten eintragen">
> </form>
>
> </body>
> </html>
>
> but my script won´t do anything !!
>
> Any one who can help ?
>
> regards
> Oliver
>
>



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to