help with form!! Please help!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
compwiz61985
Forum Newbie
Posts: 11
Joined: Tue Jul 30, 2002 9:31 pm

help with form!! Please help!

Post by compwiz61985 »

Hi! I'm new to php! I need some help with a form! I need a form with one feild! a text feal a large one! I need what ever you type in it to be writted to a .php file! can someone help me???

compwiz61985@yahoo.com
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Have you done anything at all to start on this job? This is not a script writing service (if you want to pay someone to do this for you post in the jobs forum). We will help you with code that you've written that you're having problems with but people are unlikely to post a full script for you unless it's something that they've already done. So what have you got so far?

Mac
compwiz61985
Forum Newbie
Posts: 11
Joined: Tue Jul 30, 2002 9:31 pm

Post by compwiz61985 »

so far I have the page insert done, and most of the admin!
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

That's nice, what does the code you need help look like?

Mac
compwiz61985
Forum Newbie
Posts: 11
Joined: Tue Jul 30, 2002 9:31 pm

Post by compwiz61985 »

Have no clue! I know littel php! I knew enoggh to do the other parts bu i don't know php forms!
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Then you need to start with tutorials:

http://www.phpcomplete.com
http://www.phpbuilder.com
http://www.zend.com

As I stated before, this is not a script writing service.

Mac
fatalcure
Forum Contributor
Posts: 141
Joined: Thu Jul 04, 2002 12:57 pm
Contact:

Post by fatalcure »

you tell hiim twigle! :lol:
compwiz61985
Forum Newbie
Posts: 11
Joined: Tue Jul 30, 2002 9:31 pm

Post by compwiz61985 »

Ok I think i figued out the making of a form feild and submit! Can you atleast tell me the code for the action to write to a file! i can't find that!
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

Post by llimllib »

EricS
Forum Contributor
Posts: 183
Joined: Thu Jul 11, 2002 12:02 am
Location: Atlanta, Ga

Post by EricS »

In the action field you need to insert the php page that will be retrieving the from variables and creating and/or updating a file.

In the the php page you submit to you need to first retrieve the data from the form. Then open a file to write the data to, then write the data and close the file.

That is logical progression of steps to complete the task you want. If you are unsure of any step look for tutorials on how to do that particular task. Then if you start getting errors and can't figure out what's wrong, post the code you wrote here along with the errors and we'll help you debug the script.
Post Reply