Contact form is acting like an application

Posted on 2007-08-12
Last Modified: 2013-11-05
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">
First Name:
<input type="text" size="20" name="strFirstname">
Last Name:
<input type="text" size="20" name="strLastname">
<input type="text" size="30" name="strCompany">
<input type="text" size="20" name="strEmail">
<input type="text" size="14" name="strPhone">
<tr><td valign="top">
<textarea rows="5" cols="35" name="strComments"></textarea>
<tr><td align="center" colspan="2">
<input type="submit" value="Submit">
Question by:pingeyeg
    LVL 49

    Accepted Solution


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

    Kind regards,

    LVL 1

    Author Comment

    Damn dude, I new it was something simple.  Your right, I forgot to turn on PHP for this specific domain.  Thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
    HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now