Connecting Tech Pros Worldwide Forums | Help | Site Map

call like a FORM request

Reimar Bauer
Guest
 
Posts: n/a
#1: Jul 17 '05
Hi

I am a newbie in php. I googled a while around but I don't get the right
information to solve my problem.

<form action="list_files.php" method="POST">
email: <input type="text" name="email" >
<input type="submit">
</form>

Is there any possibility to get my list_files.php called from an other php
script submiting the input parameter "email"? Could I do this only if I use
the "GET" method? If I have such a string how could it be executed?

A simple example how to call it would be fine.

best regards

Reimar

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/


somaBoy MX
Guest
 
Posts: n/a
#2: Jul 17 '05

re: call like a FORM request


"Reimar Bauer" <R.Bauer@fz-juelich.de> wrote...
[color=blue]
> Is there any possibility to get my list_files.php called from an other php
> script submiting the input parameter "email"? Could I do this only if I[/color]
use[color=blue]
> the "GET" method? If I have such a string how could it be executed?[/color]

You can send the variable directly through the url string:
list_files.php?email=me@mymail.com
The variable will then be available to list_files.php as $_GET['email'];

Other ways to transfer the data is in a cookie or as a session variable.


..soma


Closed Thread