...

View Full Version : passing post method more than 1 page?



rafiki
09-01-2006, 12:52 AM
can i pass using post to more then 1 page? like method="post" action="welcome.php, stats.php"?

thanks for help, sorry if wrong topic

managedinternet
09-01-2006, 01:10 AM
do you mean pass to 1 page,
then a link is clicked and passing to another etc ?

rafiki
09-01-2006, 01:13 AM
basically i need to pass it to welcome.php and then to stats.php
where i can use operators to show x hours watching TV or movies per year. make sense?

managedinternet
09-01-2006, 01:15 AM
if you do mean the same as above
use post and in teh form action or in links then just do


<?php echo $variable1;?><?phpecho $variable2;?>

so the total url either a standard text link or form action would be something like

action.php?variable1=<?php echo $variable1;?>&variable2=<?php echo $variable2;?>

hope that helps

dsavage666
09-01-2006, 01:16 AM
I don't think it's possible to do it the way you're trying to do it.

If your variables are globalized you can reference them from more than one page once the information is submitted.

managedinternet
09-01-2006, 01:16 AM
ahh so you mean 2 pages simultaneously

while the user remains on welcome.php the data gets sent to stats ?
is that what you mean ?

rafiki
09-01-2006, 01:20 AM
ahh so you mean 2 pages simultaneously

while the user remains on welcome.php the data gets sent to stats ?
is that what you mean ?
yes they enter data on form.php they get sent to welcome.php with the data, and the same data goes to stats.php so they enter thier name into the input field and it comes up with there data, would mysql be the answer?

managedinternet
09-01-2006, 01:23 AM
hi,

not 100% sure but your best bet would probably store the data in a db table on welcome.php and then just call it on stats.php

rafiki
09-01-2006, 01:24 AM
ok thought that the way to go thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum