mrjag85 Posted January 28, 2009 Share Posted January 28, 2009 Hey guys, I'm trying to figure out a way to let a user enter 3 inputs into a HTML form that would in-turn go to a php script and create a .wrl file. Basically, I've already got the VRML code written.. and just want to insert the form values into the proper locations in the vrml and PHP.. however, I do not know how to make PHP produce the vrml code into a .wrl format..... looking from something that would return the information in .wrl format so the user can see what their inputs did to the VRML model. Anyone know what I'm talking about here? If it's possible, I can't see it being too complicated to perform. Thank you! Link to comment https://forums.phpfreaks.com/topic/142761-solved-use-html-form-and-php-to-output-a-wrl-page-vrml/ Share on other sites More sharing options...
mrjag85 Posted January 28, 2009 Author Share Posted January 28, 2009 So no one? I mean... I can get PHP to return the code onto the page just fine. I need a way to tell the web browser the code is .wrl that way the user can view what PHP is returning as a VRML model in Cortona. LOL, this is probably a rare question so if anyone even understands what I'm asking for it would be nice to know. Thank you! Link to comment https://forums.phpfreaks.com/topic/142761-solved-use-html-form-and-php-to-output-a-wrl-page-vrml/#findComment-749012 Share on other sites More sharing options...
Prismatic Posted January 28, 2009 Share Posted January 28, 2009 Try this maybe, header("Content-type: model/vrml"); then dump the wrl file contents to the browser. No idea if it will work Link to comment https://forums.phpfreaks.com/topic/142761-solved-use-html-form-and-php-to-output-a-wrl-page-vrml/#findComment-749016 Share on other sites More sharing options...
mrjag85 Posted February 4, 2009 Author Share Posted February 4, 2009 Prismatic! You were right! It really was that simple. I honestly wasn't even going to give it try because I didn't think it was going to be that easy. Tonight I just said "What the hell, it's worth a shot." And it worked! I will never doubt the members on this board again! My apologies! - Adam Link to comment https://forums.phpfreaks.com/topic/142761-solved-use-html-form-and-php-to-output-a-wrl-page-vrml/#findComment-754205 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.