const respuesta = await consume(
enviaFormRecibeJson(
"php/valida.php", formulario))
const json =
await respuesta.json()
alert(json)
const respuesta = await consume(
enviaFormRecibeJson(
"php/valida.php", formulario))
const json =
await respuesta.json()
alert(json)
$saludo = recibeTexto("saludo");
$nombre = recibeTexto("nombre");
if (
$saludo === false
|| $saludo === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltasaludo.html",
title: "Falta el saludo.",
);
}
if (
$nombre === false
|| $nombre === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltanombre.html",
title: "Falta el nombre.",
);
}
$resultado =
"{$saludo} {$nombre}.";
devuelveJson($resultado);
Despierta y recibe request.
const respuesta = await consume(
enviaFormRecibeJson(
"php/valida.php", formulario))
const json =
await respuesta.json()
alert(json)
Hace wait esperando response.
$saludo = recibeTexto("saludo");
$nombre = recibeTexto("nombre");
if (
$saludo === false
|| $saludo === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltasaludo.html",
title: "Falta el saludo.",
);
}
if (
$nombre === false
|| $nombre === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltanombre.html",
title: "Falta el nombre.",
);
}
$resultado =
"{$saludo} {$nombre}.";
devuelveJson($resultado);
const respuesta = await consume(
enviaFormRecibeJson(
"php/valida.php", formulario))
const json =
await respuesta.json()
alert(json)
Hace wait esperando response.
$saludo = recibeTexto("saludo");
$nombre = recibeTexto("nombre");
if (
$saludo === false
|| $saludo === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltasaludo.html",
title: "Falta el saludo.",
);
}
if (
$nombre === false
|| $nombre === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltanombre.html",
title: "Falta el nombre.",
);
}
$resultado =
"{$saludo} {$nombre}.";
devuelveJson($resultado);
const respuesta = await consume(
enviaFormRecibeJson(
"php/valida.php", formulario))
const json =
await respuesta.json()
alert(json)
Hace wait esperando response.
$saludo = recibeTexto("saludo");
$nombre = recibeTexto("nombre");
if (
$saludo === false
|| $saludo === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltasaludo.html",
title: "Falta el saludo.",
);
}
if (
$nombre === false
|| $nombre === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltanombre.html",
title: "Falta el nombre.",
);
}
$resultado =
"{$saludo} {$nombre}.";
devuelveJson($resultado);
const respuesta = await consume(
enviaFormRecibeJson(
"php/valida.php", formulario))
const json =
await respuesta.json()
alert(json)
Hace wait esperando response.
$saludo = recibeTexto("saludo");
$nombre = recibeTexto("nombre");
if (
$saludo === false
|| $saludo === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltasaludo.html",
title: "Falta el saludo.",
);
}
if (
$nombre === false
|| $nombre === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltanombre.html",
title: "Falta el nombre.",
);
}
$resultado =
"{$saludo} {$nombre}.";
devuelveJson($resultado);
const respuesta = await consume(
enviaFormRecibeJson(
"php/valida.php", formulario))
const json =
await respuesta.json()
alert(json)
Hace wait esperando response.
$saludo = recibeTexto("saludo");
$nombre = recibeTexto("nombre");
if (
$saludo === false
|| $saludo === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltasaludo.html",
title: "Falta el saludo.",
);
}
if (
$nombre === false
|| $nombre === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltanombre.html",
title: "Falta el nombre.",
);
}
$resultado =
"{$saludo} {$nombre}.";
devuelveJson($resultado);
const respuesta = await consume(
enviaFormRecibeJson(
"php/valida.php", formulario))
const json =
await respuesta.json()
alert(json)
Despierta y recibe response.
$saludo = recibeTexto("saludo");
$nombre = recibeTexto("nombre");
if (
$saludo === false
|| $saludo === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltasaludo.html",
title: "Falta el saludo.",
);
}
if (
$nombre === false
|| $nombre === ""
) {
throw new ProblemDetails(
status: ProblemDetails::BadRequest,
type: "/error/faltanombre.html",
title: "Falta el nombre.",
);
}
$resultado =
"{$saludo} {$nombre}.";
devuelveJson($resultado);
Devuelve response y se duerme.
const respuesta = await consume(
enviaFormRecibeJson(
"php/valida.php", formulario))
const json =
await respuesta.json()
alert(json)
hola pp
const respuesta = await consume(
enviaFormRecibeJson(
"php/valida.php", formulario))
const json =
await respuesta.json()
alert(json)