note 65472 deleted from function.explode by nlopess
| From: | nlopess@php.net | Date: | Mon, 01 May 2006 18:40:55 +0000 |
| Subject: | note 65472 deleted from function.explode by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-110279@lists.php.net to get a copy of this message | ||
Note Submitter: vladimir1 at integraonline dot com
----
I like short scripts, BUT smart!
first file with name is - form_ch.html
<HTML><HEAD><TITLE>Form</TITLE></HEAD>
<BODY>
<FORM name="trailLogin" method="POST" action="ch2.php">
Email: <INPUT type="text" name="mailname" id="mailname">
<INPUT type="submit" name="submit" value="Show me">
</FORM></BODY></HTML>
second file with name is - ch2.php
<?php
$mail=$_POST['mailname'];
$fields = explode("@", $mail);
$nome=$fields[0];
$isp=$fields[1];
echo "this is name ".$nome."<br><br>";
echo "this is isp ".$isp;
?>
============
Thanks
Vladi