Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

305
Visualizações
Fetching value from URL, Commentics

I have a little problem with programming.

I'm trying to make a website in which people could leave their humble opinions about each other.

I was looking into one page, http://numeris.info and they seem to use very simple but also very good which would suit my needs. basically, you type in after / number and it gives info about it from database, for ex :myawesomepage.co.uk/1234567890 I'm using Commentics review system if that helps. it fetches all data with identifier

$cmtx_identifier = 'x';

Is it possible somehow to fetch the digits from URL after slash and put them instead of x ? and, if the digit doesnt exist in system, is it possible to 'create' a page?

Sorry if its to many questions, I'm just trying to learn programming, and many thanks

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

Your .htaccess

RewriteEngine On
RewriteRule ^([0-9]+)/?$ page.php?id=$1 [QSA,L]

Your page.php

<?php
$id = (int) $_GET["id"];
var_dump($id)
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda