title: How to send a default string together with the form?
body: <pre><code>&lt;?php
  
  require_once 'connection.php';
  
  $slug = '';
  
  if(isset($_POST["create"])){ 
  
    $slug = preg_replace('/[^a-z0-9]+/i', '-', trim(strtolower($_POST["title"])));
  
    $query = "SELECT slug_url FROM bn_publicacao WHERE slug_url LIKE '$slug%'";
  
    $statement = $conn-&gt;prepare($query); 
  
    if($statement-&gt;execute()){
  
      $total_row = $statement-&gt;rowCount();
  
      if($total_row &gt; 0){
  
        $result = $statement-&gt;fetchAll();
  
        foreach($result as $row){
  
        $data[] = $row['slug_url'];
  
        }
  
        if(in_array($slug, $data)){
  
          $count = 0;
          while( in_array( ($slug . '-' . ++$count ), $data) );
          $slug = $slug . '-' . $count;
  
        }
  
      }
  
    }
  
    $insert_data = array(
  
      ':title'      =&gt; $_POST['title'],
      ':descricao'  =&gt; $_POST['descricao'],
      ':capa'       =&gt; $_POST['capa'],
      ':alt'        =&gt; $_POST['alt'],
      ':keywords'   =&gt; $_POST['keywords'],
      ':categoria'  =&gt; $_POST['categoria'],
      ':slug_url'   =&gt; $slug,
      ':slug_link'  =&gt; $slug,
      ':entry_type' =&gt; $_POST['entry_type'],
  
    );
  
    $query = "INSERT INTO bn_publicacao (title, descricao, capa, alt, keywords, categoria, slug_url, slug_link, entry_type) VALUES (:title, :descricao, :capa, :alt, :keywords, :categoria, :slug_url, :slug_link, :entry_type)";
    $statement = $conn-&gt;prepare($query);
    $statement-&gt;execute($insert_data);    
  }
  ?&gt;
  
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
    &lt;head&gt;
  
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;Form&lt;/title&gt;
  
      &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" /&gt;  
  
      &lt;style&gt;
        .box
        {
         max-width:600px;
         width:100%;
         margin: 0 auto;;
        }
      &lt;/style&gt;
  
    &lt;/head&gt;
  
    &lt;body&gt;
      &lt;div class="container box"&gt;
  
      &lt;br /&gt;
      &lt;h3 align="center"&gt;Gravar post&lt;/h3&gt;
      &lt;br /&gt;
  
        &lt;form method="post"&gt;
  
          &lt;div class="form-group"&gt;
  
            &lt;label&gt;Title&lt;/label&gt;
            &lt;input type="text" name="title" class="form-control mb-3" required /&gt;
  
            &lt;label&gt;Descicao&lt;/label&gt;
            &lt;input type="text" name="descricao" class="form-control mb-3" required /&gt;
  
            &lt;label&gt;Capa&lt;/label&gt;
            &lt;input type="text" name="capa" class="form-control mb-3" required /&gt;
  
            &lt;label&gt;Alt&lt;/label&gt;
            &lt;input type="text" name="alt" class="form-control mb-3" required /&gt;
  
            &lt;label&gt;Keywords&lt;/label&gt;
            &lt;input type="text" name="keywords" class="form-control mb-3" required /&gt;
  
            &lt;label&gt;Categoria&lt;/label&gt;
            &lt;input type="text" name="categoria" class="form-control mb-3" required /&gt;
  
            &lt;label&gt;Entry_type&lt;/label&gt;
            &lt;input type="text" name="entry_type" class="form-control mb-3" required /&gt;
  
          &lt;/div&gt;
  
          &lt;br /&gt;
          &lt;div class="form-group"&gt;
          &lt;input type="submit" name="create" class="btn btn-info" value="Enviar" /&gt;
          &lt;/div&gt;
          &lt;br /&gt;
  
          &lt;h4&gt;Generated Slug - &lt;?php echo $slug; ?&gt;&lt;/h4&gt;
  
        &lt;/form&gt;
  
      &lt;/div&gt;
  
      &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"&gt;&lt;/script&gt;  
      &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"&gt;&lt;/script&gt;
  
    &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>The <code>input</code>"title" automatically generate a slug that will be send to the columns <code>slug_url</code> and <code>slug_link</code>, i need to send a default string together on the <code>slug_url</code>.</p>
  
  <p>I want to add a default url on the slug gererated to the column <code>slug_url</code>.</p>
  
  <p>Example: </p>
  
  <p>I want to add this url as default on the slug generated "<a href="http://example.com/" rel="nofollow noreferrer">http://example.com/</a>"</p>
  
  <p>this-is-the-slug-gererated-to-the-column-slug-url</p>
  
  <p>And this is how it should be send to my column <code>slug_url</code>:</p>
  
  <p><a href="http://example.com/this-is-the-slug-gererated-to-the-column-slug-url" rel="nofollow noreferrer">http://example.com/this-is-the-slug-gererated-to-the-column-slug-url</a></p>