Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts

    passing post method more than 1 page?

    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

  • #2
    New Coder
    Join Date
    Aug 2006
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts
    do you mean pass to 1 page,
    then a link is clicked and passing to another etc ?

  • #3
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts
    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?

  • #4
    New Coder
    Join Date
    Aug 2006
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts
    if you do mean the same as above
    use post and in teh form action or in links then just do
    PHP Code:
    <?php echo $variable1;?><?phpecho $variable2;?>
    so the total url either a standard text link or form action would be something like
    PHP Code:
    action.php?variable1=<?php echo $variable1;?>&variable2=<?php echo $variable2;?>
    hope that helps

  • #5
    New Coder
    Join Date
    Aug 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    No...

    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.

  • #6
    New Coder
    Join Date
    Aug 2006
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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 ?

  • #7
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts
    Quote Originally Posted by managedinternet
    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?

  • #8
    New Coder
    Join Date
    Aug 2006
    Posts
    50
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

  • #9
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,042
    Thanks
    19
    Thanked 42 Times in 42 Posts
    ok thought that the way to go thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •