Results 1 to 5 of 5

Thread: Sending a form without the <form>

  1. #1
    Join Date
    Nov 2007
    Posts
    151
    Thanks
    67
    Thanked 0 Times in 0 Posts

    Default Sending a form without the <form>

    Hi

    I have few text fileds and text aeras, which are located in my PHP document, all over the page.

    Due to my own reasons, I don't want to include the "<form>" and "</form>".

    Is there a possible to send this form without the form tags?

    Thank you very much

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    That's odd, I don't think you can, but you can however pass data via URL and accept it using GET method.

    This is'nt tested yet, but try to send the data via the URL:
    Code:
    http://google.com?data=mydata&otherdata=another1
    ...and on your PHP:
    PHP Code:
    <?php
    echo $_GET['data'];
    echo 
    $_GET['otherdata'];
    ?>
    To come up with that URL, we might need a little JS, but hope that makes sense.

    Get back if you're still stumped.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. The Following User Says Thank You to rangana For This Useful Post:

    d-machine (09-18-2008)

  4. #3
    Join Date
    Nov 2007
    Posts
    151
    Thanks
    67
    Thanked 0 Times in 0 Posts

    Default

    I don't like using the GET method so much.

    I just have few input fileds, Is there another way to get their values into PHP variables without the form tags?

  5. #4
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    I don't think there is a possibility for that, but I might be at mistake.

    Let's wait for some members to confirm or oppose my above statement.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  6. #5
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    You can use cookies for that purpose. Though it has its own problems like the user may disable cookies, erase cookies, etc.

    Why do you want to avoid sending the complete form to your server-side? I wonder

Bookmarks

Posting Permissions

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