| | |
return a value to php form
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2006
Posts: 4
Reputation:
Solved Threads: 0
body>
<form name="wfwd">
<select name="wcode" onChange="disp(document.wfwd)">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<?php
$id=$_get['id'];
echo $id;
?>
</form>
</body>
<script>
function disp(Object)
{
var index=Object.wcode.selectedIndex;
var value=Object.wcode.options[index].value;
var item=Object.wcode.options[index].text;
document.wfwd.action='worksfwdtogovt.php?id=item';
document.wfwd.submit();
}//disp
can i return the value of item into the form using this javascript.
i want to echo the value of id in form.pls help me
Last edited by praseena : Yesterday at 11:13 am.
<form name="wfwd">
<select name="wcode" onChange="disp(document.wfwd)">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<?php
$id=$_get['id'];
echo $id;
?>
</form>
</body>
<script>
function disp(Object)
{
var index=Object.wcode.selectedIndex;
var value=Object.wcode.options[index].value;
var item=Object.wcode.options[index].text;
document.wfwd.action='worksfwdtogovt.php?id=item';
document.wfwd.submit();
}//disp
can i return the value of item into the form using this javascript.
i want to echo the value of id in form.pls help me
Last edited by praseena : Yesterday at 11:13 am.
•
•
Join Date: Jul 2004
Posts: 494
Reputation:
Solved Threads: 21
To get PHP to echo the data, you need to reload the page. PHP is the PHP Hypertext PREPROCESSOR, which means PHP is invoked before the page is displayed.
Please at least take the time to spell out "please". "pls" could mean too many different things to be useful as an abbreviation.
Please at least take the time to spell out "please". "pls" could mean too many different things to be useful as an abbreviation.
www.uncreativelabs.net
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
Old computers are getting to be a lost art. Here at Uncreative Labs, we still enjoy using the old computers. Sometimes we want to see how far a particular system can go, other times we use a stock system to remind ourselves of what we once had.
![]() |
Similar Threads
- (reformatted) How to return Multi-Dimensional Arrays (C++)
- PHP Form Validation ??? (PHP)
- Sending pic attachments via PHP form (PHP)
- html/php form for .htaccess validation (PHP)
- php/mysql configuration? queries do not return anything. (PHP)
Other Threads in the PHP Forum
- Previous Thread: data output
- Next Thread: I NEED HELP PLEASE:Warning: mysql_num_rows():
Views: 2815 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email encode error fcc file files folder form forms function functions google howtowriteathesis href htaccess html image include insert integration ip java javascript joomla limit link login loop mail menu methods mlm mod_rewrite multiple multipletables mysql oop parse paypal pdf php problem provider query radio random recursion regex remote script search select server sessions sms soap source space speed sql structure syntax system table template tutorial update updates upload url validation validator variable video web xml youtube





