Quote from llazzari on September 27, 2020, 12:06 pmBuongiorno a tutti
Usando FormSubmit.neoapp.Nell'azione Success / date / status del form il codice SetObjectHTML "Container1" "[Date]" il valore [date]
è una variabile?.
Non riesco a trovarlo nell'elenco delle variabili, non riesco a vedere quali valori contiene.
Ho provato a modificare il form sostituendo Age con un input di testo per un messaggio, modificando anche il codice php.
Quando avvio l'applicazione, il server mi restituisce tutti i
valori tranne il messaggioDATI RICEVUTI DA SERVER:
Nome = LUCCA
Cognome = Lazzeri
Età =
Genere = Maschio
Buongiorno a tutti
Usando FormSubmit.neoapp.
Nell'azione Success / date / status del form il codice SetObjectHTML "Container1" "[Date]" il valore [date]
è una variabile?.
Non riesco a trovarlo nell'elenco delle variabili, non riesco a vedere quali valori contiene.
Ho provato a modificare il form sostituendo Age con un input di testo per un messaggio, modificando anche il codice php.
Quando avvio l'applicazione, il server mi restituisce tutti i
valori tranne il messaggio
DATI RICEVUTI DA SERVER:
Nome = LUCCA
Cognome = Lazzeri
Età =
Genere = Maschio

Quote from luishp on September 27, 2020, 1:43 pm@llazzari note that you should upload your .php file to a web server (or use neoPHP Server) and change the Form Object "action" property to the proper URL. The sample app points to visualneo.com web server.
@llazzari nota che dovresti caricare il tuo file .php su un server web (o usare neoPHP Server) e cambiare la proprietà "azione" dell'oggetto modulo con l'URL corretto. L'app di esempio punta al server web visualneo.com.
@llazzari note that you should upload your .php file to a web server (or use neoPHP Server) and change the Form Object "action" property to the proper URL. The sample app points to visualneo.com web server.
@llazzari nota che dovresti caricare il tuo file .php su un server web (o usare neoPHP Server) e cambiare la proprietà "azione" dell'oggetto modulo con l'URL corretto. L'app di esempio punta al server web visualneo.com.
Quote from llazzari on September 27, 2020, 2:47 pmHo caricato il file php sul server (hosting clouneo) http://costedilprog.com/filephp/neoapptest.php
ma non funziona, dove mi sbaglio?
Sono entrato nella forma del modulo "Azione:
http://costedilprog.com/filephp/neoapptest.php"
I modified the form I removed the message
this is the php
<? php
// Header required when app and php have different origins header ("Access-Control-Allow-Origin: *");if ($ _SERVER ["REQUEST_METHOD"] === "POST") {
if (isset ($ _ POST ["firstName"]) && isset ($ _ POST ["lastName"]))
{
// Correct submission of the form
$ result = "DATA RECEIVED FROM SERVER:".
"<br /> First Name =". $ _POST ["firstName"].
"<br /> Last Name =". $ _POST ["lastName"]."<br /> Gender =". $ _POST ["gender"];
} else
{$ result = "INVALID REQUEST DATA";}}
else {$ result = "INVALID REQUEST DATA"}echo $ result;
?>
Ho caricato il file php sul server (hosting clouneo) http://costedilprog.com/filephp/neoapptest.php
ma non funziona, dove mi sbaglio?
Sono entrato nella forma del modulo "Azione:
http://costedilprog.com/filephp/neoapptest.php"
I modified the form I removed the message
this is the php
<? php
// Header required when app and php have different origins header ("Access-Control-Allow-Origin: *");
if ($ _SERVER ["REQUEST_METHOD"] === "POST") {
if (isset ($ _ POST ["firstName"]) && isset ($ _ POST ["lastName"]))
{
// Correct submission of the form
$ result = "DATA RECEIVED FROM SERVER:".
"<br /> First Name =". $ _POST ["firstName"].
"<br /> Last Name =". $ _POST ["lastName"].
"<br /> Gender =". $ _POST ["gender"];
} else
{$ result = "INVALID REQUEST DATA";}
}
else {$ result = "INVALID REQUEST DATA"}
echo $ result;
?>
Quote from llazzari on September 27, 2020, 6:47 pmLa pagina non funziona
costedilprog.com al momento non è in grado di gestire la richiesta.
HTTP ERROR 500 ??
costedilprog.com al momento non è in grado di gestire la richiesta.

Quote from luishp on September 27, 2020, 7:15 pm@llazzari probably your PHP code is firing the server error.
Note that "$ result" is incorrect, it should be "$result" (note the space). You have some more very similar errors: "$ _ POST" instead of "$_POST"...
@llazzari probably your PHP code is firing the server error.
Note that "$ result" is incorrect, it should be "$result" (note the space). You have some more very similar errors: "$ _ POST" instead of "$_POST"...