Page 1 of 1

help with form!! Please help!

Posted: Tue Jul 30, 2002 9:31 pm
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

Posted: Wed Jul 31, 2002 1:45 am
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

Posted: Wed Jul 31, 2002 9:27 am
by compwiz61985
so far I have the page insert done, and most of the admin!

Posted: Wed Jul 31, 2002 9:29 am
by twigletmac
That's nice, what does the code you need help look like?

Mac

Posted: Wed Jul 31, 2002 9:31 am
by compwiz61985
Have no clue! I know littel php! I knew enoggh to do the other parts bu i don't know php forms!

Posted: Wed Jul 31, 2002 9:32 am
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

Posted: Wed Jul 31, 2002 10:13 am
by fatalcure
you tell hiim twigle! :lol:

Posted: Wed Jul 31, 2002 10:44 am
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!

Posted: Wed Jul 31, 2002 10:45 am
by llimllib

Posted: Wed Jul 31, 2002 11:29 am
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.