Jump to content

code broke please help....


redarrow

Recommended Posts

The name wont change within the img tag to john stays as abcd

 

 

 

<?php

if($_POST['submit']){

$text=$_POST['text'];
$img=$_POST['img'];

$a=explode(' ',$text);

foreach($a as $img){

if(eregi_replace('\[img=*\]','john',$img)){

	echo $img;

}
}
}
?>

<center>
<form method="POST" action=" ">
PLEASE ENTER TEXT AND USE [img= ] TO ENTER IMAGE'S
<p></p>
<textarea name="text" cols="40%" rows="20%"></textarea>
<p></p>
<input type="submit" name="submit" value="submit">
</form>
</center>

Link to comment
https://forums.phpfreaks.com/topic/95059-code-broke-please-help/
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.