logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 02-14-2014, 06:40 PM   #1
mustangdesigner
 
Join Date: Feb 2014
Posts: 17
Default New to php form results

I design in DW in split view and have been limited to html. I have a request for a contact form that does not expose the client's email address and so I am now learning basic PHP.
I have found two of your tutorials helpful but am not quite there. I started with "Using Dreamweaver and PHP to send form results in an email" and also "PHP includes" Right now I have the form built and the the include script in place but it the form sends to a page full of the php code. I will attach that section of code. Take it ease on me--I am new at this
I also wondered if I created the php file correctly but in the code view the copied script is the only script there.
Here is the form script. I can also provide a link to the test site page if preferred.

<form id="Contact Form" name="Contact Form" method="post" action="sendresults.php">
<?php include("includes/menu.php"); ?>

<p>
<label for="Name">Name</label>
<input type="text" name="Name2" id="Name" />
</p>
<p>
<label for="Phone ">Phone (optional)</label>
<input type="text" name="Phone " id="Phone " />
</p>
<p>
<label for="Email2">Email</label>
<input type="text" name="Email2" id="Email2" />
</p>
<p>
<label for="Comment2">Comment</label>
<textarea name="Comment2" id="Comment2" cols="45" rows="5"></textarea>
</p>
<p>
<input type="submit" name="Submit" id="Submit" value="Submit" />
<br />
</p>
<p>&nbsp; </p>
</form>
mustangdesigner is offline   Reply With Quote
Old 02-15-2014, 01:11 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,176
Default

well as a form its ok but the file in your action action="sendresults.php
will be the script that handles it. if you copied it from thiis forum it should be ok, although there was a redirect issue mentioned lately
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is online now   Reply With Quote
Old 02-15-2014, 07:35 AM   #3
mustangdesigner
 
Join Date: Feb 2014
Posts: 17
Default

I did copy it from the website but the directions were to set the action to www.yourwebsite.com/sendresults.php. When I used that I got a "no file exists" error. Where I took out the web address and linked to the file using the browse option I at least went to the page of code instead of an error. I also added " <?php include ("includes/menu.php")" based on your Using PHP site
mustangdesigner is offline   Reply With Quote
Old 02-15-2014, 09:34 PM   #4
mustangdesigner
 
Join Date: Feb 2014
Posts: 17
Default

Here is a link to what is going on

http://www.kinggraphics.net/9thstree...y/contact.html
mustangdesigner is offline   Reply With Quote
Old 02-17-2014, 01:12 AM   #5
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,176
Default

the action reads
action="www.9thstreetframe.com/sendresults.php">

so use
action="sendresults.php">
or the full site URL
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is online now   Reply With Quote
Old 03-04-2014, 08:30 PM   #6
mustangdesigner
 
Join Date: Feb 2014
Posts: 17
Default

OK, gt this to work on another site. The problem may have been the test site. Thanks for your help!
mustangdesigner is offline   Reply With Quote
Old 04-03-2014, 12:11 AM   #7
jmichae3
 
Join Date: Dec 2010
Posts: 366
Default

email server is probably not configured on the test server. you would also have to configure php.ini
__________________
------------
Jim Michaels
HTML Code:
improperly<strong>nested<em>elements</strong>cause</em>
browser confusion (I believe the term is 'tag soup')!

Last edited by jmichae3; 04-03-2014 at 12:11 AM.. Reason: add word also.
jmichae3 is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:47 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com