1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Going crazy please help!!

Discussion in 'PHP' started by R&B, Aug 15, 2015.

Thread Status:
Not open for further replies.
  1. #1
    I’m writing this php code where each php page (containing form and functions) load via ajax load() (upon option selection).

    Now i’m using ajax on “example.php” to load a php page “insertjobs.php” while passing a POST variable (“person Name”. This “insertjobs.php” should take that variable “person Name” and using “OOP” on second code (included) and (actions->sample($postedvar)) using that passed name variable inserts related “job title” to that specific name.

    Now when i don’t pass variable and assign name to that POST variable on “insertjob.php” page it works like a charm!

    But when i do i echo “$postedvar” before form submission and it works and looks fine but when i pass that $postedvar” to oop action page it returns NULL.
     
    R&B, Aug 15, 2015 IP
  2. ThePHPMaster

    ThePHPMaster Well-Known Member

    Messages:
    737
    Likes Received:
    52
    Best Answers:
    33
    Trophy Points:
    150
    #2
    Can you post the code with code tags?
     
    ThePHPMaster, Aug 16, 2015 IP
  3. R&B

    R&B Greenhorn

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    Thank you ThePHPMaster for your reply. I figured it out! just a funny typo :(((
     
    R&B, Aug 16, 2015 IP
Thread Status:
Not open for further replies.