Jump to content
  • Advertisement
Sign in to follow this  
andrew1123

[web] (object type="text/html") - how to use (param)

This topic is 3933 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

here's some HTML that I have: <object type="text/html" data="object.php"> <param name="message" value="hi" /> <param name="$message" value="hia" /> </object> and object.php: <?php echo $message; echo $_message; echo $_GET['message']; echo $_POST['message']; echp "test"; ?> I don't get either "hi" or "hia", but I get "test". Does anyone know how to retrieve the parameters from <param>? I'm pretty sure it's not in GET or POST. If there's no way, then I'm fine with just using data="object.php?message=hi" (for now).

Share this post


Link to post
Share on other sites
Advertisement
I thought such params were only fed to the resulting client side object, not to the server it requests the object from?

If you're just trying to send data to a remote page, that's what query strings or forms are for.

Share this post


Link to post
Share on other sites
I don't think those parameters are intended for server-side use - I'm pretty sure the server can't retrieve them in any way.

You might be able to get it from javascript, but in any case, just use the query string instead as others have noted.

Mark

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!