sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
Reimar Bauer's Avatar

call like a FORM request


Question posted by: Reimar Bauer (Guest) on July 17th, 2005 05:58 AM
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: Join Bytes!
http://www.fz-juelich.de/icg/icg-i/

1 Answer Posted
somaBoy MX's Avatar
Guest - n/a Posts
#2: 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


 
Not the answer you were looking for? Post your question . . .
197,009 members ready to help you find a solution.
Join Bytes.com

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 197,009 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors