FormSubmit.neoapp - Forum

Forum Navigation
You need to log in to create posts and topics.

FormSubmit.neoapp

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

Uploaded files:
  • You need to login to have access to uploads.

@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.

 

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;
?>

La pagina non funziona

costedilprog.com al momento non è in grado di gestire la richiesta.

HTTP ERROR 500 ??

@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"...