Jump to content

Oldemaren

New Members
  • Posts

    5
  • Joined

  • Last visited

Oldemaren's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Name or email. It doesn't work for me. I am newbie to this. <form action="mail.php" method="post"> //or name.php <br><textarea name="emails" value="emails"></textarea> //or names <br>Email <input type="submit" value="Subscribe"> //or Name </form> <?php //emails or name, the same $emails = $_POST["emails"]; $emails = explode($emails); echo "<br>test=".$emails; //$emails = Remove/delete almost all countries, except .se (email: "name@gmail.se" or name: "FirstName LastName, Sverige") $emails = array(stristr($email, '@')); foreach( $emails as $email ) { echo "<br>test".$email; }
  2. ok then, but let us forget email, there is past. Here is a new: <form action="name.php" method="post"> <textarea name="name" value="name"></textarea> <input type="submit" value="Subscribe"> </form> <?php $name = $_POST["name"]; //$name = explode/ltrim/array/string/all of that echo $names; All the names, unfortunately: (name, textarea) Tom Thomsen, England John Johnsen, Italy James Jensen, Italy Jamie Stalker, Sweden Almost the same as email, but new name and countries. How can I have many italies in one groups, and then english groups in second group and so on?
  3. I have English and only English. But I rather have also blabla@gmail.it, blabla2@live.it, etc for Italy, blabla1@yahoo.se, blabla2@gmail.se, etc for Swedish and so on. $emails = explode, ltrim, array, string or something
  4. I have ESP (mailchimp.com), but it's mixed up from email, or you can have English value, but thats no good for me. Can you have with one mail language (.co.uk), then another mail language (.se) then another mail language (.it) and so on?
  5. I have mixed text with emails. Some are .com, .co.uk, .it, .se, dk, de, and so on. <form action="mail.php" method="post"> <textarea name="emails" value="emails"></textarea> <input type="submit" value="Subscribe"> </form> <?php $emails = $_POST["emails"]; //$email = explode/ltrim/array/string/all of that echo $emails; All the emails, unfortunately. blabla1@hotmail.com blabla2@hotmail.de blabla3@yahoo.com blabla4@hotmail.es blabla5@gmail.es ... But how can I have with one language, example I would have only .de: blabla1@hotmail.de blabla2@hotmail.de blabla3@gmail.de blabla4@yahoo.de blabla5@gmail.de ... and next I would have only .se, and so on. Can you tell me? I am newbie.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.