Jump to content

php explode


Exoon

Recommended Posts

<?php

if($_POST[newlinks]) {

$newlinks = $_POST['newlinks'];

$newlinks = explode(',', $newlinks);

    foreach ($newlinks as $newlink) {
      $new_number = substr("$newlink", -13, 4);    
      echo "Updating Number: $new_number with the link $newlink <br />";
   }
  
}





echo "<form method=\"POST\" action=\"mass_links.php\">";
echo "<br /> <strong>Enter the new links to try and replace old ones</strong> <br />";
echo "<textarea rows=\"16\" name=\"newlinks\" cols=\"84\"></textarea>";


?>
<input type="submit" value="Submit" name="B1">

 

 

That is using a commer which works but ide rather not have to type a commer after every link.

 

 

 

Some example links:

 

 

Link to comment
https://forums.phpfreaks.com/topic/212393-php-explode/#findComment-1106615
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.