| Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | OP Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | Ok, I've asked on the IRC, and even asked SR/Paradox to make me a program, both got sidetracked and I'm still at square one... What I need is a program (quick and easy so long as it works) to convert a list of email addresses that are return delimited to make them comma delimted. Example from: [email protected][email protected][email protected][email protected][email protected][email protected][email protected]Example to: [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]It has to be capable of converting a list of 3000 users. I need it ASAP for a friend of mine's site, when he changed hosts he went from using one type of mailing list to MajorDomo through his webhost. Anyone care to help? It has to be easy enough for a complete newb to use :glances at Kevin:... Basically all it need to do is have a convert button with input boxes for both lists (to/from filename) and possibly a ratio box to define what type of conversion (may it be from comma delimted to return delimted, or vice versa). It has to leave the original file untouched. | | | | Joined: Dec 2002 Posts: 3,255 Likes: 3 UGN Elite | UGN Elite Joined: Dec 2002 Posts: 3,255 Likes: 3 | How is this for simple.
<Form action="this_script.php?cmd=process" Method=POST>
Paste email addys here
<textarea></textarea>
<input type="submit" value="submit">
</form>
<?
if($cmd == "process"){
$emails = ereg_replace( "
", ",", $remarks );
echo "$emails";
}
?>
| | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | OP Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | heh, keep in mind kevin is a newb... In any case, SR got something done for me . | | | | Joined: Dec 2002 Posts: 3,255 Likes: 3 UGN Elite | UGN Elite Joined: Dec 2002 Posts: 3,255 Likes: 3 | | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | OP Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | I have to say it... it doesn't work :x... http://www.UnderGroundNews.com/kevin.php <Form action="kevin.php?cmd=process" Method=POST>
Paste email addys here
<textarea></textarea>
<input type="submit" value="submit">
</form>
<?
if($cmd == "process"){
$emails = ereg_replace( "
", ",", $remarks );
echo "$emails";
}
?> | | | | Joined: Dec 2002 Posts: 3,255 Likes: 3 UGN Elite | UGN Elite Joined: Dec 2002 Posts: 3,255 Likes: 3 | Must I type out every piece of code I offer. the name attribute is missing in the text area tag. See code below for final(give or take an error or two)
<Form action="this_script.php?cmd=process" Method=POST>
Paste email addys here
<textarea name="remarks">
</textarea>
<input type="submit" value="submit">
</form>
<?
if($cmd == "process"){
$emails = ereg_replace( "
", ",", $remarks );
echo "$emails";
}
?>
| | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | OP Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | I had to .... Next issue: Outputs as: Instead of: ... | | | | Joined: Dec 2002 Posts: 3,255 Likes: 3 UGN Elite | UGN Elite Joined: Dec 2002 Posts: 3,255 Likes: 3 |
<Form action="this_script.php?cmd=process" Method=POST>
Paste email addys here
<textarea name="remarks"></textarea>
<input type="submit" value="submit">
</form>
<?
if($cmd == "process"){
$emails = ereg_replace("
",",",$remarks);
$emails = ereg_replace(" ","",$emails);
echo "<textarea>$emails</textarea>";
}
?> Try that. I even made it easier to copy them all. I just took out all spaces :rolleyes: | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | OP Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | | | | | Joined: Dec 2002 Posts: 3,255 Likes: 3 UGN Elite | UGN Elite Joined: Dec 2002 Posts: 3,255 Likes: 3 | | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | OP Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | Now exports to a text box as: ... Back to the seperate lines and the comma in wrong place heh... | | | | Joined: Dec 2002 Posts: 3,255 Likes: 3 UGN Elite | UGN Elite Joined: Dec 2002 Posts: 3,255 Likes: 3 | Okay I got tired of posting fixes to code I never tryed. I actually tested this. It is butt simple. Drop the email addys in and copy off the page. The source will show the emails addys with the return charater still. However the HTML will dissplay them flat. Just copy and paste into whatever system.
<Form action="test.php?cmd=process" Method=POST>
Paste email addys here
<textarea name="remarks"></textarea>
<input type="submit" value="submit">
</form>
<?
//******************************************
//** add extensions below as needed **
//******************************************
if($cmd == "process"){
$emails = ereg_replace(".com",".com,",$remarks);
$emails = ereg_replace(".net",".net,",$emails);
$emails = ereg_replace(".org",".org,",$emails);
$emails = ereg_replace(".us",".us,",$emails);
$emails = ereg_replace(".biz",".biz,",$emails);
$emails = ereg_replace(".tv",".tv,",$emails);
echo "$emails";
}
?>
| | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | OP Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | Not bad at all, all but the final string having a comma, but hey that's fine ... | | | | Joined: Dec 2002 Posts: 3,255 Likes: 3 UGN Elite | UGN Elite Joined: Dec 2002 Posts: 3,255 Likes: 3 | yea.. He has to make 1 manual change. But if the list is long enough that seems mighty simple. | | | | Joined: Feb 2002 Posts: 7,203 Likes: 11 Community Owner | OP Community Owner Joined: Feb 2002 Posts: 7,203 Likes: 11 | Lol indeed ... | | |
Posts: 35 Joined: August 2003
| | Forums41 Topics33,840 Posts68,858 Average Daily Posts0 | Members2,176 Most Online3,253 Jan 13th, 2020 | | | | | | | | | | | Doom 3 by Cyrez - 09/11/14 08:58 PM
| | | | | | | | | | | | | | | | | | |