Sending parameter to a form

  • Thread starter Thread starter anonyme
  • Start date Start date
A

anonyme

Hi,

FP2003, with FP Extensions.

I have a series of pages (lets call them A, B, C...) where members call
for help from colleagues; at the bottom of each page I have included a
standard page (a Webbot): an answer form which is posted to a PHP
handler that sends an email.

Works OK.

Up to now, the email subject (which call this email answers) is taken
from a drop-down list on the form. But the list is getting long...

Is it possible to send the subject from page A to the form so that the
PHP handler can use it (and from page B...)?

Thanks for your help.

Alain
 
Hi David,

Thanks for your answer.

After looking at the pages mentionned below, I still have questions:

* The form at the bottom of each page is a unique Include Page component
(same page is included in all pages A, B, C...). Page A, B or C would
each provide a distinct subject, but it is the form (the Include Page
component) that is submitted. How can I assign a subject in page A, (and
post it from the Form?) and retrieve it in the PHP handler?

* First page you mention suggests an input box. The point is: I wish to
avoid any user interaction on Subject and to provide Subject automaticaly.

Thanks again.

Alain

Récemment, David Berry a écrit:
 
Hi again,

I made a few steps towards a solution
* found that parameters are valid only when sent to PHP files, not HTML
* I retreived the parameter both with QueryString and Get.
For example, I retreive with:
$Sujet=$_GET['Sujet']."<p>";
With an echo statement, I see the value is ok.

The problem is: How to use this variable to set an initial value.
<input type="text" name="SujetB" size="30" tabindex="1" value = Sujet>
only adds the variable's name ('Sujet'), not its value.

I've seen many examples of setting a litteral initial value, but no one
using a variable.

Thanks.

Récemment, (e-mail address removed) a écrit:
 
Hi,

Answer found.

If the variable is named $Sujet, its value can be assigned to field by:
<input type="text" name="SujetB" size="30" tabindex="1"
value="<?php echo $Sujet; ?>">

Thanks for your help.

Alain

Récemment, (e-mail address removed) a écrit:
Hi again,

I made a few steps towards a solution
* found that parameters are valid only when sent to PHP files, not HTML
* I retreived the parameter both with QueryString and Get.
For example, I retreive with:
$Sujet=$_GET['Sujet']."<p>";
With an echo statement, I see the value is ok.

The problem is: How to use this variable to set an initial value.
<input type="text" name="SujetB" size="30" tabindex="1" value = Sujet>
only adds the variable's name ('Sujet'), not its value.

I've seen many examples of setting a litteral initial value, but no one
using a variable.

Thanks.

Récemment, (e-mail address removed) a écrit:
Hi,

FP2003, with FP Extensions.

I have a series of pages (lets call them A, B, C...) where members
call for help from colleagues; at the bottom of each page I have
included a standard page (a Webbot): an answer form which is posted to
a PHP handler that sends an email.

Works OK.

Up to now, the email subject (which call this email answers) is taken
from a drop-down list on the form. But the list is getting long...

Is it possible to send the subject from page A to the form so that the
PHP handler can use it (and from page B...)?

Thanks for your help.

Alain
 
Back
Top