Jump to content

[SOLVED] strstr not working


mike12255

Recommended Posts

Bah, curse my bad vison dont mind this i figured out i forgot the "!" infront of strstr

 <?php

if ($_POST['preview']){
	   $website = $_POST['website'];
	$name = $_POST['name'];
	$adress = $_POST['adress'];
	$email = $_POST['email'];
	$phone = $_POST['phone']; 

	if (strstr($website,"http://") ){
			   $website = "http://" . $website;
			   }

	?>
        

Link to comment
https://forums.phpfreaks.com/topic/148551-solved-strstr-not-working/
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.