Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 20th, 2007, 09:11 AM
Authorized User
 
Join Date: Dec 2006
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Default manipulating forms with php and javascript

Hi!
I wanted a function that when I click a checkbox, info from one text-input move to another text-input on antoher form.
Ie Ive got 2 forms and I want to change data between them.
Ive tried with the following javascript;
Code:
function ifylld(test)
{
alert(text);
}
and then the following inside one of the form in php;
I want the variable "$row_lev[Levplats]" to follow along to the javascript.

Code:
 echo "<input type='checkbox' name='flytta' value='1' onclick='JavaScript:ifylld(" .$row_lev[Levplats] . ")'>";
I only get a error saying that the variable is undefiend.
Any help????
/Hylsan






Similar Threads
Thread Thread Starter Forum Replies Last Post
Acrobat forms with Javascript tdmpatio Java Basics 1 March 28th, 2006 05:00 AM
Working with Forms and Date in Javascript danieljava Pro JSP 1 January 16th, 2006 05:56 AM
manipulating data in mysql using php - countries phpnukes BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 January 24th, 2005 01:35 AM
.NET and JavaScript Forms kylemccullough ASP.NET 1.0 and 1.1 Basics 5 June 19th, 2004 10:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.