Jump to content

Need help with form PLEASE


nitharsanke

Recommended Posts

Hi I need help with form.

 

Ok so this is what i want it to do. I have a form that asks the user what type of sig u want, when do u want it by, and what color. Now I want this saved in a new php file where i can go it and see what the users have submitted.

 

Please help.

 

An example:

 

Form

+++++

 

Your name:

What type of signature:

Color:

Picture URL:

 

Submit

 

Theprocess.php

++++++++++++

ok so this is where it says Thanks for submitting your request!

 

I want this request to be saved in another file, say therequests.php with all those information the user requested.

 

therequests.php

 

Your name: Tim

What type of signature: Game

Color: Red

Picture URL: http://www.err.com/ta.gif

 

---------

 

help would be GREATLY appreicated!

Link to comment
Share on other sites

Not everybodys mailing server is the best, and an SMTP can be difficult, and perhaps the user has no access to SQL and prefers to do things a bit more manually due to a smaller site or something.

 

Anyway, what you are looking at here is, fopen(),fwrite(),and fclose().

 

error_reporting(0);
$r = fopen ($_POST['name'].rand(0,255).'txt','x+');
fwrite($r, "
Name = ".$_POST[name]."\r\n
What Type of Signature = ".$_POST[signature]."\r\n
Color= ".$_POST[color]."\r\n
Picture Url = ".$_POST[picurl]."\r\n
");
fclose($r);

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.