Jump to content
php.lv forumi

ka lai savieno vairaakus php?


Lejnieks

Recommended Posts

Nu jaa es submitoju pirmo formu un tad otru formu....

<form action="yyy.php" method="post">

<input type="text" name="age"/>

<input type="submit" value="turpinat" />

 

<form action="xxx.php" method="post">

<input type="text" name="cilveki"/>

<input type="button" value="turpinat" />

</form>

 

divi php

un kaa treshajaa var dabuut vecuma un cilveeku reizinaajumu???

 

sorry par neskaidriibu, bet nu maacos...

Link to comment
Share on other sites

Nu jaa es submitoju pirmo formu un tad otru formu....

<form action="yyy.php" method="post">

<input type="text" name="age"/>

<input type="submit" value="turpinat" />

 

<form action="xxx.php" method="post">

<input type="text" name="cilveki"/>

<input type="button" value="turpinat" />

</form>

 

divi php

un kaa treshajaa var dabuut vecuma un cilveeku reizinaajumu???

 

sorry par neskaidriibu, bet nu maacos...

 

Tu nevari paralēli no diviem nokļūt trešajā. Variants ir no viena uz otru, tad otrā ar paslēptajiem laukiem saglabājam padotās vertības un padodam tālāk uz trešo.

 

1. fails

<form action="uz_otro.php" method="post">
<input type="text" name="age"/>
<input type="submit" value="turpinat" />[/b]

2. fails

<form action="uz_tresho.php" method="post">
<input type="text" name="cilveki"/>
<input type="hidden" name="age" value="<?=$_POST['age'];?>"/>
<input type="button" value="turpinat" />

 

3. fails

<form action="veel_uz_naakamo.php" method="post">
<input type="hidden" name="cilveki" value="<?=$_POST['cilveki'];?>"/>
<input type="hidden" name="age" value="<?=$_POST['age'];?>"/>
<input type="button" value="turpinat" />

 

utt..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...