Last visit was: It is currently Thu Sep 09, 2010 11:56 am


All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Problem building a form in Dreamweaver...
PostPosted: Mon Jul 27, 2009 6:34 pm 
Idiot

Joined: Mon Jul 27, 2009 6:29 pm
Posts: 3
So I attempted at building a form in dreamweaver... http://www.albertajdcwest.com/Contact.html based on your tutorial and your php document.

Here is the code I have for the Contact page:

Code:
<form id="Contact" name="Contact" method="post" action="FormToEmail.php">
  <p><input name="You Name Here" type="text" class="l21" id="You Name Here" onclick="MM_setTextOfTextfield('You Name Here','','')" value="Your Name" size="25px" maxlength="50" /></p>
  <p><input name="You Email Here" type="text" class="l21" id="You Email Here" onclick="MM_setTextOfTextfield('You Email Here','','')" value="Your Email" size="25px" maxlength="50" /></p>
  <p><textarea name="Your Comments" cols="50px" rows="6" class="l21" id="Your Comments" onclick="MM_setTextOfTextfield('Your Comments','','')">Your Comments, Concerns or Requests!</textarea></p>
  <p>
    <input name="Sumbit" type="submit" class="l21" id="Sumbit" value="Submit to JDC" />
  </p>
</form>



And here is the code from the php page ( I didnt edit anything but the email -- as suggested)

Code:
<?php

$my_email = "geoff@thinkwerx.com";

/*

Enter the continue link to offer the user after the form is sent.  If you do not change this, your visitor will be given a continue link to your homepage.

If you do change it, remove the "/" symbol below and replace with the name of the page to link to, eg: "mypage.htm" or "http://www.elsewhere.com/page.htm"

*/

$continue = "/";

/*

Step 3:

Save this file (FormToEmail.php) and upload it together with your webpage containing the form to your webspace.  IMPORTANT - The file name is case sensitive!  You must save it exactly as it is named above!  Do not put this script in your cgi-bin directory (folder) it may not work from there.

THAT'S IT, FINISHED!

You do not need to make any changes below this line.

*/




However, once published, I tried using the form and no emails come to my specified email: geoff@thinkwerx.com


Can you please try and help diagnose my problem?

Thank you for your help anyone...


Top
Offline Profile E-mail  
 
 Post subject: Re: Problem building a form in Dreamweaver...
PostPosted: Mon Jul 27, 2009 7:00 pm 
Site Admin
User avatar

Joined: Mon Jun 01, 2009 8:54 am
Posts: 16
Location: East Haven, CT
I am sorry.. the code says use "get" however it should use "post" i will change that now.. Also, your code is not using any labels.. You should have a lable for each input. It also looks as though you are combining two tutorials?? You are using some javascript to add text to the box.. I do not really use that.. Have you tried to just copy and paste my code directly and work from there?? i have this on multiple websites and never had one issue.

_________________
Because it NEVER turns out the way you want it....
Image


Top
Offline Profile E-mail  
 
 Post subject: Re: Problem building a form in Dreamweaver...
PostPosted: Mon Jul 27, 2009 9:29 pm 
Idiot

Joined: Mon Jul 27, 2009 6:29 pm
Posts: 3
This is the only tutorial I used... and I just used that code that was in that php file you uploaded to it:

http://www.webdesignforidiots.net/2009/ ... tact-form/

Can you give me an example or point me in the direction of where you talk about these "labels"... This is my first time working with forms...

Can you show me an example of working code with labels?


Top
Offline Profile E-mail  
 
 Post subject: Re: Problem building a form in Dreamweaver...
PostPosted: Mon Jul 27, 2009 9:36 pm 
Site Admin
User avatar

Joined: Mon Jun 01, 2009 8:54 am
Posts: 16
Location: East Haven, CT
What i suggested was copy and paste the ENTIRE code into your website. You have a bunch of other stuff in there.. SO remove ALL of the code that you added and just paste this in there:
Code:
<form action="" method="get">
<label>name</label><input name="name" type="text" size="50px" maxlength="35" />
  <label>email</label><input name="name" type="text" size="50px" maxlength="35" />
   <label>phone</label><input name="name" type="text" size="50px" maxlength="35" />
  <label>message</label>
    <textarea name="name" cols="50px" rows="10"></textarea>
    <input name="submit" type="submit" />
</form>


Somehow you had javascript in there and all sorts of other useless stuff.. Just use exactly what i posted.. then from there you can edit it in WYSIWYG mode

_________________
Because it NEVER turns out the way you want it....
Image


Top
Offline Profile E-mail  
 
 Post subject: Re: Problem building a form in Dreamweaver...
PostPosted: Tue Jul 28, 2009 12:24 pm 
Idiot

Joined: Mon Jul 27, 2009 6:29 pm
Posts: 3
Hummm.... :?

I tried pasting that and its still not working....

Can you send me the code for one of your pages that you have used this in before and the code for the PHP document...? I changed the PHP document to say thanks for submitting, ect with a picture in it, that wouldnt have screwed it up would it?


Top
Offline Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net & kodeki