advance Posted May 29, 2007 Share Posted May 29, 2007 hello ... i have a problem i have an index file and it`s in html the index redirects to another .html file and the third file is .php and how do i to do extract the data from the first .html ?? this is the best i can explain :| Link to comment https://forums.phpfreaks.com/topic/53390-some-help-please/ Share on other sites More sharing options...
MadTechie Posted May 29, 2007 Share Posted May 29, 2007 use fread but it depends how their redirecting.. the HTML files should be read ok if the php file is redirecting your probably need to read from local source Link to comment https://forums.phpfreaks.com/topic/53390-some-help-please/#findComment-263798 Share on other sites More sharing options...
advance Posted May 29, 2007 Author Share Posted May 29, 2007 i don`t quite understand .. can u explain please? Link to comment https://forums.phpfreaks.com/topic/53390-some-help-please/#findComment-263913 Share on other sites More sharing options...
MadTechie Posted May 29, 2007 Share Posted May 29, 2007 Try using fread if you have problems let me know i'll see what i can come up with. or post some code so i can review it Link to comment https://forums.phpfreaks.com/topic/53390-some-help-please/#findComment-263989 Share on other sites More sharing options...
advance Posted May 29, 2007 Author Share Posted May 29, 2007 i don`t know how to user fread like this : <form method=post action=asd.html> <input type=text name=email value=""> </input> <input type=text name=comment value=""> </input> </form> first .html and the second : <form method=post action=as.php> something like that how do i extract the email and the comment if goes through a second html>> please someone answer me Link to comment https://forums.phpfreaks.com/topic/53390-some-help-please/#findComment-264006 Share on other sites More sharing options...
trq Posted May 29, 2007 Share Posted May 29, 2007 how do i extract the email and the comment if goes through a second html You can't. If you want to collect values passed through forms you will need to use php, html is unable to do such things. Link to comment https://forums.phpfreaks.com/topic/53390-some-help-please/#findComment-264012 Share on other sites More sharing options...
advance Posted May 29, 2007 Author Share Posted May 29, 2007 i have : index.html action=login.html login.html action=log.php log.php how do i $_post the data from the index.html to login.html with php? and them to extract the data posted in the login.html via php in the log.php thanks in advance Link to comment https://forums.phpfreaks.com/topic/53390-some-help-please/#findComment-264103 Share on other sites More sharing options...
MadTechie Posted May 29, 2007 Share Posted May 29, 2007 index.html action=login.html will fail you can't do it unless you mod the server to handle html as php in which case why have login.html action=log.php, re-think the logic index.html action=log.php (including login.html) log.php Link to comment https://forums.phpfreaks.com/topic/53390-some-help-please/#findComment-264154 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.