Text Input Object - Forum

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

Text Input Object

I am writing a small application that give possibility to a user to sent his message after pressing a button.

Here is what i have done so far.

I put a Text Input object on a form object.  The variable is [mytext].

There is a button object to be click that is use to sent the message the user wrote to me.

What is the action needed to do that?

Thanks!

Hi @rocote,

How do you want to send the message from the user to you?
By email?
Storing the message in a remote database or text file?
Both options will need a server side script.
Regards.

 

Yes by Email... sorry

 

Also, i'm using this animation text in a Headline Object who is on a container.

But when the animation start, the size of the text in the Headline object become very small.

In other word, the size of the text doesn,t stay the same size

slTextAnimator "Container1" "flipInY" "flipOutY" true 0 false

Hi @rocote,
I'm afraid it's not an easy task.
You need to use a Form Object and send the content to a remote server script (through the "action" property).
Please take a look at the included FormSubmit sample app.
On the server you will need to parse the information from the form and send it to your email.
This is a sample PHP script to automaticaly parse and send to an email address any kind of information from a Form Object:

<?php
//Header required when app and php are of different origins
header("Access-Control-Allow-Origin: *");
$message="";
if($_SERVER["REQUEST_METHOD"] === "POST") {
   foreach ($_POST as $key => $value){
      $message .= "".htmlspecialchars($key).": ".htmlspecialchars($value)."\r\n";
   }
   $to = "somebody@example.com";
   $subject = "My subject";
   $headers = "From: webmaster@example.com" . "\r\n" . "CC: somebodyelse@example.com";
   mail($to,$subject,$message,$headers);
}else{
   $result = "INVALID DATA";
   echo $result;
}
echo "EMAIL SUCCESSFULLY SEND";
?>

I would like to offer you an easy way, but unfortunately it's necessary a mail server to send emails.

About slTextAnimator, I need to see a sample app to tell you what's happening.
Best regards.