Jump to content

Not getting email, redirecting to php code


chelmich

Recommended Posts

I admit, I have never done php before but I am trying.  I have a VERY simple form. . .

2 questions, 3 possible responses to each question (radio buttons).  I would eventually like to send this info to a database but for now I will settle for an email that is legible.

 

I used the simple "mailto" function in the form and got the email but as you know it is hard to read so I tried my hand at php. . .

 

My problem lies in that when I test the form but hitting the "submit" button, I get a page that shows all of my php coding.  I thought it was me so I downloaded a trial version of a php code writing software.  Guess what, same thing.

 

Is this a server issue?  I spoke with the man in charge of the server and he said it did support php.  I have never dealt with servers so I don't know where to go from here.

 

Thank you.

Link to comment
Share on other sites

Almost all servers require the PHP code to be:

[*]Within <?php ?> tags

[*]Within a .php exension, NOT .html

 

Also, It'd be much easier if you show us your current code you're working on in case you're making some obvious errors (this is a fairly straightforward project you're doing, so it's most likely an error there), just place them within

 tags.


			
		
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.