Jump to content

problem with form


Rugbyfreak

Recommended Posts

if (strlen($name) == 0 || strlen($familyname) == 0 || strlen($user) < 6 || strlen($password) < 8) || !eregi('@',$email)

    {

  header('Location:fillfields.html');

  }

  else

  {

  echo: "blabla";

  }

 

dooesn't work.... can someone help me..

just receiving a 404 error

HTTP Error 404 Not Found

Link to comment
https://forums.phpfreaks.com/topic/158922-problem-with-form/
Share on other sites

First of all, there is a syntax error:

<?php
if (strlen($name) == 0 || strlen($familyname) == 0 || strlen($user) < 6 || strlen($password) <  || !eregi('@',$email))
    {
   // header('Location:fillfields.html');
   header("Location: ".$_SESSION['http'].$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."fillfields.html");
   }
   else
   {
   echo: "blabla";
   }
?>

 

 

Link to comment
https://forums.phpfreaks.com/topic/158922-problem-with-form/#findComment-838169
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.