Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
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
  #1 (permalink)  
Old January 24th, 2011, 05:24 PM
Friend of Wrox
 
Join Date: May 2005
Location: , , Norway.
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Submit

Hei!

Why does this code not redirect to the file "logg_inn.php"?

Code:
<head>
<script type="text/javascript">
function formSubmit()
{
document.getElementById("form").submit();

parent.frames[2].location='register.html';
parent.frames[4].location='something.html';
}
</script>
</head>

<body>
		<form id="form" action="logg_inn.php">
some code...
__________________
Internet has become favorable with that tool...thank you Tim Berners-Lee!
  #2 (permalink)  
Old January 24th, 2011, 06:04 PM
Friend of Wrox
 
Join Date: May 2005
Location: , , Norway.
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Default

...and

Code:
<input type="button" onClick="formSubmit()" value="Logg inn">
__________________
Internet has become favorable with that tool...thank you Tim Berners-Lee!


Similar Threads
Thread Thread Starter Forum Replies Last Post
use an anchor to submit, or set image for submit button mikezx10 Classic ASP Basics 1 March 22nd, 2010 09:40 AM
Submit olisav ASP.NET 2.0 Basics 0 May 17th, 2007 02:32 PM
How to submit the different data on single submit pushpa Classic ASP Databases 1 January 24th, 2007 07:10 PM
How can we submit a form without a submit butto phpsharma BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 4 October 20th, 2003 08:50 AM
submit kilika Javascript How-To 2 September 16th, 2003 05:43 PM





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