php tutorials, php form validation
Archive Tutorials
Discussion Home
Login / Register

Board List
PHP programming
General

Links
How to save gas 25% or more
Marshall Reddick
Network Marketing Forums
Income Tax Help
Lose 10 Pounds in 3 Weeks
PHP Forum Script
Online Contest

Learn PHP in 47 hours!

Back to General

Search

php  with 2 forms php  with 2 forms

php with 2 forms

by jalea148 on Thu 06/28/2007 11:27 AM

I have 2 forms; each has its own Post action. In both forms [say they are called form1 and form2], there is a field called ‘name’. After the post of form1, on the 2nd page I capture fields from the first page with statements like $name=$_POST['name']; - this works fine.   How do I get form2.name.value set to $name? When I try to set the value of form2's field called 'name' [value = $name] it treats $name as a literal string. {sorry for this explanation - I tried to insert a snippit which disappears in Preview.}
    


    Thank you.

[Reply] [Back to Top]

© Copyright 2006-2007.  All Rights Reserved. Site hosted by Small Business Web Design
how to start a blog | parenting tips website | Passive Income | baby websites