Passing values between forms.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mvital
Forum Newbie
Posts: 4
Joined: Thu Oct 23, 2003 10:42 am

Passing values between forms.

Post by mvital »

HI all

all i want to do its very simple :D ( i think ) i have several forms and i want to the pass the values of the 1st to the 2sd form , etc

how can i do it ??
im using php 2.3.2 and dreaweaver mx

and just i say before im starting TODAY with php !!

thz in advanced
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

and just i say before im starting TODAY with php
I'd try the multi page forms thing next week then. Walk before you can run :o

But seriously, if you're only just starting PHP today, and you're already asking for help, then something is wrong. I/we could tell you the answer but i'm a great believer in "Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime".

http://www.php.net/docs.php will teach you to fish ;)
mvital
Forum Newbie
Posts: 4
Joined: Thu Oct 23, 2003 10:42 am

Post by mvital »

just give a clue ..... where i should start , i can do a simple form , pass the values to a DB , but i just dont know how to start :oops:
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

you better first get understanding of php with html
you will find it very easy ...
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

start with the tutorial section of the manual
it has a chapter Dealing with Forms
Last edited by volka on Thu Oct 23, 2003 11:08 am, edited 1 time in total.
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

you better first get understanding of php with html
you will find it very easy ...
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

mvital
Forum Newbie
Posts: 4
Joined: Thu Oct 23, 2003 10:42 am

Post by mvital »

Thz all , i will read the tutorials :oops:
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Code: Select all

<pre>
<?php
    if (isset($_POST['test']) and !empty($_POST['test'])) {
        $value = $_POST['test'];
    } else {
        $value = 'Nothing...';
    }
?>
Type something and press Submit...
<form method="post">
 <input type="text" name="test" value="<?php echo $value; ?>" />
 <input type="submit" />
</form>
</pre>
;)
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

learn by doing:wink:
gl
mvital
Forum Newbie
Posts: 4
Joined: Thu Oct 23, 2003 10:42 am

Post by mvital »

great tutorial in at ZEND , now i figured what im doing !!!!!
Post Reply