The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
Register Vendor Account
By Guest on 7th September 2021 09:35:34 AM | Syntax: PHP | Views: 43



New paste | Download | Show/Hide line no. | Copy text to clipboard
  1. if($_POST){
  2.         $continue=true;
  3.         $idcnt_ct=$_POST['idcnt_ct'];
  4.         $name_ct=$_POST['name_ct'];
  5.         $slug_ct = $_POST['slug_ct'];
  6.         if(!$name_ct || strlen($name_ct)<2){
  7.         $msg="&#9888; خطأ: يجب أن يتكون الاسم من حرفين على الأقل.";
  8.         }else{
  9.         $slug_ct=strtolower(trim($slug_ct));
  10.         $slug_ct=trim(str_replace('-',' ',$slug_ct));
  11.         $slug_ct=preg_replace("/[^A-Za-z0-9 ]/", "", $slug_ct);
  12.         $slug_ct=trim(str_replace(' ','-',$slug_ct));
  13.         }



  • Recent Pastes