[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 171
  • Last Modified:

Contact form is acting like an application

I have created a contact form, but for some reason when I click the submit button I get a popup window that asks if I would like to download the php file.  Why would this be happening?  My code is the following.  I had this happen to me before, but I can't remember what the solution was.

<table width="100%" cellpadding="5" cellspacing="0" class="contactus" bgcolor="#effde1">
<tr><form action="/dev/scripts/contactus.php" method="post">
<td>
First Name:
</td><td>
<input type="text" size="20" name="strFirstname">
</td></tr>
<tr><td>
Last Name:
</td><td>
<input type="text" size="20" name="strLastname">
</td></tr>
<tr><td>
Company:
</td><td>
<input type="text" size="30" name="strCompany">
</td></tr>
<tr><td>
Email:
</td><td>
<input type="text" size="20" name="strEmail">
</td></tr>
<tr><td>
Phone:
</td><td>
<input type="text" size="14" name="strPhone">
</td></tr>
<tr><td valign="top">
Comments:
</td><td>
<textarea rows="5" cols="35" name="strComments"></textarea>
</td></tr>
<tr><td align="center" colspan="2">
<input type="submit" value="Submit">
</td></form></tr>
</table>
0
pingeyeg
Asked:
pingeyeg
1 Solution
 
RoonaanCommented:
pingeyeg,

Are you sure that your server supports php and is configured to handle .php files as php scripts?

Kind regards,

-r-
0
 
pingeyegAuthor Commented:
Damn dude, I new it was something simple.  Your right, I forgot to turn on PHP for this specific domain.  Thanks!
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now