Jump to content

check by linewise


Nandini

Recommended Posts

hi

I have a textarea in a form. In that user enters data like

fromuser=xxxxxxx

fromdomain=xxxxx.xxxxx.xxx

canreinvite=no

qualify=3000

nat=yes

 

I want to check line by line and print that as it is. I dont know how many lines of data he enter. I have to check each line and print. That textarea value is stored into the database.

I know how to display the whole data. here is my script.

 

$rcount=count(explode("\n",$row['peer_details']));

$rdata=explode("\n",$row['peer_details']);

$i=0;

while($i<=$rcount)

{

echo rtrim($rdata[$i]);

$i++;

}

 

Link to comment
https://forums.phpfreaks.com/topic/130535-check-by-linewise/
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.