Page 1 of 1

javascript in php code

Posted: Thu Oct 03, 2002 4:45 pm
by webatzman
I have a sentence in php

$stmt = OCIParse($conn,"select * from kedo where claveedo = $i");

how i can to put javascript in

$stmt = OCIParse($conn,"select * from kedo where claveedo = $javascript_variable");

thanks ur help

Posted: Thu Oct 03, 2002 5:30 pm
by volka
welcome to this forum :D
  • please read the sticky threads first
  • Sticky: Before Post Read: Warning: Cannot add header information
  • Sticky: Before Post Read: Concerning Passing Variables in PHP 4.2+
  • Sticky: Before Post Read: Frames, JavaScript, and PHP Overview
the last one will (hopefully) answer your question

Posted: Sat Oct 05, 2002 7:27 pm
by cybaf
you have to post the $javasctipt_variable to the php page from a form and then access the variable with $_POST['javascript_variable'] or $_GET['javascript_variable'] depending on what type of for you use.

//Anders Fredriksson