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
https://forums.phpfreaks.com/topic/48718-need-help-with-form-please/
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);

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.