Whats wrong with php on my pc?

Soldato
Joined
19 Dec 2004
Posts
3,887
Hey,
I'm having trouble viewing phpfiles I created on my pc.I have already installed apache,mysql,php onto it.

I believe my php is installed on my pc as when I type in http://localhost/phpinfo.php on IE the php page with the phpconfig,etc shows up. The problem is when I was viewing my OrderForm(html) and I press submit it should take me to my processorder(php) file but all it does is ask me if I want to download that php file. Anyone know why?

Thanks
 
Is the php file (and HTML etc) in the public_html, or whatever folder it is for apache? Rather than just a local one in say my documents?

Can you tell I am rubbish at explaining things? :D :p
 
I think I kinda understand what you talking about :p , yeah I put the files in the htdocs in the apache file yet it still doesnt work. Any ideas?
 
It sounds like you're submit button is just a link to the php file.

You need something like this for your form (I apologise if it's something else entirely!)

Code:
<form action="processorder.php" method="get">
    <input name="" type="text" />
    <input name="" type="submit" />
</form>

Make sure you set the <form action="xxx"> where xxx is the name of the php page that does the form processing.
 
Yeah its set as that. It seems that only firefox has this issue,used my IE and it was fine :p
Owel.

Seems like I am having forever problems with php and mysql, if only I didn't choose to do my A Level Coursework using it. :p
 
Err all i can think of then is checked the html of the page validates and post up the code here.
 
Back
Top Bottom