Hi:
I am calling this javascript:
<script language="javascript">
function set_item_values(x)
{
document.forms.form1.GetElementById(x).value = "itemcode";
}
</script>
from here, to set other values in the form:
<select name="Product_Pick" size="1" id="Product_Pick" onchange="set_item_values(document.forms.form1.Item_Code)">
<?php
do {
?>
<option value="<?php echo $row_Product_Select['Product_Code']?>"><?php echo $row_Product_Select['Product_Code']?> - <?php echo $row_Product_Select['Name']?></option><?php
} while ($row_Product_Select = mysql_fetch_assoc($Product_Select));
$rows = mysql_num_rows($Product_Select);
if($rows > 0) {
mysql_data_seek($Product_Select, 0);
$row_Product_Select = mysql_fetch_assoc($Product_Select);
}
?>
The value I have in there so far is just a proving string...
It ain't working, but I don't know why, and I am having problems finding a good reference for using php and javascript for working with documents and events in html, so that i can set off a value change to set values for several fields, or perform actions.
Can I have my hand held please and someone get me up and running? I have been programming for 15 years or so and in different languages (from pl1, jcl, pascal, to basic, java) so what I guess a good insight into using variables and syntax would get me going...
DOMDocument parsing
Hello, I am parsing an xml file from an API which I have converted into a DOMDocument in php. This is mostly fine but one problem I have is when I do this:Code:
Array help
Hello i got this code to fetch data from database but it is not working it displays7ArrayArrayArrayArrayArrayArrayCode: if (isset($_POST['showrecord'])){ $query='SELECT * FROM artus_test';
convert pps to wsf with php'how?
hii want to convert with php PowerPoint file to swf file(flash)how please?thank!!!
I need an iframe that calls up a different page according to the date
hiI don't know any php (only html) and I urgently need to do the following: I need an iframe that calls up a different page according to the date e.g. on the 2th Dec a page called 'special2.php',
upload image name with extension using php
hi frds..<input id="file1" type="file" name="file[]" >upload image show path like C:\Documents and Settings\My Documents\My Pictures\images0056.jpgi need
mod_rewrite.c on windows ??
why it's not working on windows while it's working on other hosts??? this is the code i got from a tutorial :Code: <IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /rewriterule
Really need helps regarding Pagination with Sort
I need someone helps regarding pagination problem...i actually want to make my page limited to let say 50 so it will look like this page1=0-50page2=51-100Then i want to sort let say based on the name
MYSQL INSERT ID NOT WORKING
Code: $id = mysql_insert_id();header("Location: ./?view=$id");Why $id pulling blank nothing?Code: mysql_query("INSERT INTO `prays` (`title`,`prayer`,`time`,`level`,`nameid`,`name`)
Must-Know Topics of PHP
Can you guys list the must-know topics of PHP. I am still a learner and I am trying to cover most of the important topics in PHP.
Php WordPress help
I am writing the following code for making a plugin<?phpheader("Content-Type: text/css");/*Plugin Name: Name of the plugin.Plugin URI: The page having information related to