Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 04-23-2008, 10:02 PM simple form help
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
I am trying to get a very simple form to work with PHP but can not find anything on the NET to explain how to do this without having to learn tons of stuff which I just havn't got the time to do at the moment.

I use dreamweaver which I believe will do this for me but after numourus attempts and hours of feeling inadequate as a male specamine I thought I better ask for help.
It seems the more I look into getting the form to work the more completicated it gets and I am now totally confused.

I would be very grateful if someone could take a look at the form and let me know what I need to do as mu head has started to blead and theres a dent in my desk

This is the form

HTML Code:
<form id="form1" name="form1" method="post" action="thank_you.html">
         <label for="Name">Name</label>
         <input type="text" name="Name" id="Name" />
         <label for="PhoneNo">Phone No</label>
         <input type="text" name="PhoneNo" id="PhoneNo" />
         <label for="PropVal">Property Value</label>
         <input type="text" name="PropVal" id="PropVal" />
         <label for="LoanAmount">Loan Amount</label>
         <input type="text" name="LoanAmount" id="LoanAmount" />
         <label for="FinType">Finance Required</label>
         <select name="FinType" id="FinType">
            <option>Please Select</option>
            <option value="mortgage">Mortgage</option>
            <option value="remortgage">Remortgage</option>
            <option value="secured">Secured Loan</option>
            <option value="BTL">Buy to Let</option>
            <option value="other">Other</option>
         </select>
         <label for="callaT">Best Time to Call</label>
         <select name="callaT" id="callaT">
            <option>Please Select</option>
            <option value="morning">Morning</option>
            <option value="afternoon">Afternoon</option>
            <option value="evening">Evening</option>
            <option value="any">Any time</option>
         </select>
         <a href="javascript:newwindow()" ><br / >
            Data Protection Statement<br />
         </a>
         <input type="submit" name="submit" id="submit" value="Call me back" />
      </form>
I have stripped out all the stuff I tried to do to keep things easy. I am not asking for anyone to write any PHP for me, just to point me to a place that will tell me how to fix the above so the form submits (something just for forms if thats possible).

Thanks in advance.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by bakerc; 04-23-2008 at 10:04 PM..
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
 
Register now for full access!
Old 04-24-2008, 01:53 AM Re: simple form help
phpknowhow's Avatar
Skilled Talker

Posts: 83
Name: Colin
Location: USA
Trades: 0
If you notice in the opening form tag the action parameter which references "thank_you.html". Essentially you are sending a form to be processed by an html page. That makes no sense, since HTML is not a programming language and won't be able to respond to the form data. So you need to change this address to a .php file which will process the form data.
__________________

Please login or register to view this content. Registration is FREE
| Freelance PHP solutions for small to midsized projects |
Please login or register to view this content. Registration is FREE
phpknowhow is offline
Reply With Quote
View Public Profile Visit phpknowhow's homepage!
 
Old 04-24-2008, 05:04 AM Re: simple form help
ooyes's Avatar
Skilled Talker

Posts: 55
Name: Web Design Company
Location: London
Trades: 0
yes he is right besides the .php what do you want to do with the form?? i can help
__________________

Please login or register to view this content. Registration is FREE
ooyes is offline
Reply With Quote
View Public Profile Visit ooyes's homepage!
 
Old 04-24-2008, 09:17 AM Re: simple form help
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
Sorry guys, you are right, the thankyou page is the page its to redirect to after the form has been submitted - obviously an error I made when cleaning out the other gumf I put in which didn't work - appologies.

Thats all I want to do, have the form submit and sent to my email address - I want to use PHP as, from my understanding its the best way of doing it.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 04-24-2008, 10:20 AM Re: simple form help
Ultra Talker

Posts: 310
Trades: 0
Take a look at this PHP contact script i wrote and uploaded not so long ago on another forum, even if you don't wanna use it, it will at least show you how to do it.
dman_2007 is offline
Reply With Quote
View Public Profile
 
Old 04-24-2008, 10:33 AM Re: simple form help
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
Thanks dman, the link goes to another forum which I would have to register with - I dont want to join another forum at this time is there anyway you can post the script here??
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Old 04-24-2008, 10:44 AM Re: simple form help
Ultra Talker

Posts: 310
Trades: 0
Sure, no problem. Here you go.
Attached Files
File Type: zip php-contact.zip (2.7 KB, 3 views)
dman_2007 is offline
Reply With Quote
View Public Profile
 
Old 04-24-2008, 02:37 PM Re: simple form help
Defies a Status

Posts: 2,071
Name: carl
Location: UK
Trades: 0
dman thanks again.

From the looks of it their isn't any way I can do this myself without learning more about PHP (some of the stuff made sense, most of it didn't)

Thanks for the responses guys.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
bakerc is offline
Reply With Quote
View Public Profile Visit bakerc's homepage!
 
Reply     « Reply to simple form help
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.72486 seconds with 13 queries