tcorbeil Posted March 19, 2007 Share Posted March 19, 2007 In my HTML I want to fetch a php file (the php file is a form for a user to fill out) but I want the form pasted on my page but instead it ries to open the form page in a new window of it's own... I tried href but also include.. I don't know that I am using the include properly.. any ideas? Thanks. T. Link to comment https://forums.phpfreaks.com/topic/43343-fetch-a-php-file/ Share on other sites More sharing options...
trq Posted March 19, 2007 Share Posted March 19, 2007 Post the relevent code. Link to comment https://forums.phpfreaks.com/topic/43343-fetch-a-php-file/#findComment-210482 Share on other sites More sharing options...
tcorbeil Posted March 19, 2007 Author Share Posted March 19, 2007 <div id="invertedtabs"> <ul> <li style="margin-left: 1px"><b><a href="#" onclick=http://www.xxxxxxx.com/form.php title=""><span>FORM</span></a></b><br /> </DIV> notes: this is a tabs bar code taken from another site.. I modified it in the attempt to past my form on the current page with the hopes to use onclick.. T. Link to comment https://forums.phpfreaks.com/topic/43343-fetch-a-php-file/#findComment-210483 Share on other sites More sharing options...
trq Posted March 19, 2007 Share Posted March 19, 2007 That is a link. If you want to include a file within another you will need to use the include function. However, php does not by default run in .html files. Link to comment https://forums.phpfreaks.com/topic/43343-fetch-a-php-file/#findComment-210485 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.