First, I forgot the link for the iFrame sample. Here it is, sorry. Also, scroll down it and press PAGE2 to see the demo: http://www.iframehtml.com/
Well, you would have to create a string with the data inside the textfields.
Then, build the actual ?..&…&… string to use in calling the PHP code. Here is one sample…
Since the code you posted calls a function “update()”, you would access that data. Something like:
function update(){
var updateinfo=“updatepage.php?id=’” + document.getElementById(‘id’).value + “,&qty=’” + document.getElementById(‘qty’).value + “’,&price=’” + document.getElementById(‘price’).value + “’”;
document.getElementById(‘iFrame1’).src=updateinfo;
}
*** NOTE: this sample loads an iFrame with a new page. If you want to just pass it to another page, you would use Javascripts Windows.redirect command. Also, watch out for the quote/Double-quote issue. This is a very critical part of building a string to pass on. I usually pop-up an ALERT to display it to make sure it is correct before making the code live. Check out the results of your string build to make sure it is correct. ***
Hope this helps…