ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

PHP variable in url

July 22, 2010 5:45am

Subscribe [2]
  • #1 / Jul 22, 2010 5:45am

    Micke Alm

    5 posts

    (hopefully this is posted in the correct section)

    Hi,
    I’m having trouble reading variables from the url…

    The url /applicants/job/?plats=3053 is only returning Array ( [/applicants/job/] => ) when I do print_r($_GET)... That’s about as far as I can explain it, not being very knowledgeable in php 😉

    Anyone come across this before?

    Micke

  • #2 / Jul 22, 2010 6:21am

    Micke Alm

    5 posts

    Solved by changing the variable to /applicants/job/3053 and then using {segment_} in the php

  • #3 / Jul 22, 2010 7:42am

    Ingmar

    29245 posts

    Glad to see you’re all set. Please post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases