note 65472 added to function.explode

From: Date: Mon, 01 May 2006 18:35:03 +0000
Subject: note 65472 added to function.explode
Groups: php.notes 
Request: Send a blank email to php-notes+get-110278@lists.php.net to get a copy of this message
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 ---- Server IP: 66.163.161.117 Probable Submitter: 64.122.230.89 ---- X-Spam-Status: No, hits=3.7 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER, HTML_70_80,HTML_MESSAGE autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.explode.php Edit -- http://master.php.net/note/edit/65472 Del: integrated -- http://master.php.net/note/delete/65472/integrated Del: useless -- http://master.php.net/note/delete/65472/useless Del: bad code -- http://master.php.net/note/delete/65472/bad+code Del: spam -- http://master.php.net/note/delete/65472/spam Del: non-english -- http://master.php.net/note/delete/65472/non-english Del: in docs -- http://master.php.net/note/delete/65472/in+docs Del: other reasons-- http://master.php.net/note/delete/65472 Reject -- http://master.php.net/note/reject/65472 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#110278) next »