Connecting Tech Pros Worldwide Help | Site Map

call like a FORM request

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2005, 04:58 AM
Reimar Bauer
Guest
 
Posts: n/a
Default call like a FORM request

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/


  #2  
Old July 17th, 2005, 04:58 AM
somaBoy MX
Guest
 
Posts: n/a
Default 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


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

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 220,989 network members.