yep, and now when I read those two post they make sooo much sense! You've taught me much in these past couple of days!
thanks again!
User Profile
Collapse
-
finally success! I've been opening the html pages from the actual folder they are in.
When I type the URL using the localhost then they run the php page. Boy my laziness sure created a huge problem for me.
Thanks for all your help and patience - I know you must be just rolling your eyes big time. If it makes you feel any better at least you taught me a bunch of stuff!
Thanks again!Leave a comment:
-
I didn't change anything to read those URL in my samples - just something that I noticed.
Maybe I'm not understanding what you mean by headers. My code has changed since the beginning with the exception of the lines you wanted me to add to send_simpleform .php.
I am using an apache server.Leave a comment:
-
file:///C:/Program%20Files/Apache%20Softwa re%20Foundation/Apache2.2/htdocs/simpleform.html
for the php form it is....
file:///C:/Program%20Files/Apache%20Softwa re%20Foundation/Apache2.2/htdocs/send_simpleform .php
however, shouldn't the second one be localhost/send_simpleform .php?
because if I change the address to that then I get a webpage with done on it.Leave a comment:
-
well I am still at a stand still - cannot get this basic command to function.
any other suggestions???
I do notice on the failures that I receive that the secondary PHP page type is coming in as plain/text - if I understand you correctly from prior post that should be html - how would I change that?
Thanks for all your help, I do appreciate but it's very hard not to be frustrated.Leave a comment:
-
when the html code is in the developer mode the method listed is GET even though the code inside says POST.
this is what I am referring to.Leave a comment:
-
I've never had a POST PHP page work. As you can tell I'm just a beginner.
The examples where the PHP code is listed within a Html page work.
My setup will preform the statement below properly - just bring that up since it is getting the format to use from another php file.
$format = include("local_ format.php")
Dormilich walked me thru using chrome to display the html code and...Leave a comment:
-
Thanks for all this useful information - pretty slick and, being new to the scene, didn't even realize it existed! But on to the problem at hand.
when the html code is in the developer mode the method listed is GET even though the code inside says POST.
The PHP page lists the content type as text-plain.
The entire process though is no longer opening a separate window at least in the chrome.
Any...Leave a comment:
-
it might be that PHP is not registered as handler.
where would I find that out?
I did run it in chrome with the devoloper tools on but I'm not sure what I am looking for.Leave a comment:
-
-
Sadly, the exact same thing happens in Chrome....inste ad of running the PHP code it opens the code in a text editor (note pad).Leave a comment:
-
I really need it to work in Internet Explorer. I don't have the other browsers.Leave a comment:
-
-
here is the code (from the book examples....)
Code:<html> <head> <title>A simple HTML form</title> </head> <body> <form action="send_simpleform.php" method="POST"> <p><strong>Name:</strong><br/> <input type="text" name="user"></p> <p><strong>Message:</strong><br/>
Last edited by Dormilich; Jan 23 '12, 03:27 PM. Reason: please use [CODE] [/CODE] tags when posting codeLeave a comment:
-
yes they are. My problem started when I tried to send variables from a Html page to a php page.
These are my first attempts at using this technology. I am just working through excerises in a book to learn. Everything has worked thus far with the exception of branching out from a html to php. My thoughts are at this time that being able to do this branching would prove very powerful and useful.
thanks in advance...Leave a comment:
-
this is the line from the html page which "calls" the php code.
<form action="send_si mpleform.php" method=post>
all pages are being displayed in the localhost server. I am using Apache for this.
If I change the entire process to be just one php text file with php code list on the top with the html code listed below with this command <form action="<?php echo $_SERVER["PHP_SELF"];...Leave a comment:
-
Dormilich this is the line of code in the html form form action="send_si mpleform.php" method="POST". What happens next then it that the .php file is opened for editing instead of being the web page parroting what was written the html form.
I went to the book CD to copy the code from there thinking maybe I had a typing error that I wasn't seeing. Those files work the same as mine.
Suggestions?...Leave a comment:
-
Method POST
I am working thru the book PHP, MySQL and Apache from the Sams teach yourself library. On page 202 the exercise it to create an HTML input screen and then pass the variables to php. When I try my it opens my PHP listing but does not display it as a website. Any help would be appreciated.
No activity results to display
Show More
Leave a comment: