https://www.icyphoenix.com/viewtopic.php?f=35&t=3827 ----------------------------------- tarilotta Tue 11 Mar, 2008 20:49 Click Submit->Send PM ----------------------------------- Can anyone tell me how to make it so that when someone hits the submit button, it will send me what they put in a PM? Like I made a form, and I want it so when they submit it, it will send a PM to me... ----------------------------------- Vortex Tue 11 Mar, 2008 20:51 Re: Click Submit->Send PM ----------------------------------- [quote user="tarilotta" post="25902"]Can anyone tell me how to make it so that when someone hits the submit button, it will send me what they put in a PM? Like I made a form, and I want it so when they submit it, it will send a PM to me...[/quote] Are you talking about messaging in forums? ----------------------------------- tarilotta Tue 11 Mar, 2008 21:42 Re: Click Submit->Send PM ----------------------------------- No, I have a website... Hosted by IP... I created a HTML order form, I want it so that when someone comes to my site, they fill out the form and when they click submit it will send it to me in a PM kind of like the "mailto:example1@exapmle4.com" function only this doesnt work because anyone who doesnt have the program Outlook Express installed it wont let them send it, and it doesnt send automatically... So i was just wondering if anyone knew what the code was so that after the customer hit "submit" the form content would be sent to me in a PM ----------------------------------- Vortex Tue 11 Mar, 2008 22:16 Re: Click Submit->Send PM ----------------------------------- [quote user="tarilotta" post="25905"]No, I have a website... Hosted by IP... I created a HTML order form, I want it so that when someone comes to my site, they fill out the form and when they click submit it will send it to me in a PM kind of like the "mailto:example1@exapmle4.com" function only this doesnt work because anyone who doesnt have the program Outlook Express installed it wont let them send it, and it doesnt send automatically... So i was just wondering if anyone knew what the code was so that after the customer hit "submit" the form content would be sent to me in a PM[/quote] Well this is not strictly Icy Phoenix related... Anyway, if I understood, look if this could go for you (it's very rough, just to give you the idea ;) ): [quote] form.php [code linenumbers=false] "; mail($to, $subject, $message); echo "Message sent."; ?>[/code] form.html [code linenumbers=false] TITLE
Nick:



[/code][/quote] You can find many examples of php mail function on the net, if you really can't succeed, try again here, someone will help ;) ----------------------------------- tarilotta Thu 13 Mar, 2008 04:56 Re: Click Submit->Send PM ----------------------------------- Yes, I knew this isnt really IP related, but I figured i might as well ask here and see if anyone has the answer, or can point me in the right direction seeing as there seems to be many intelligent helpful people on here =] Thank you for replying and getting these codes... This is what I currently have set up, on one of the forms (i made a few different copies to try different mail things to get it to send better) but maybe I typed something wrong, very possible =P lol, but i will use these and see if it works Thanks for the reply =] And i did try to find the mail thing on the web, but for some reason the one that everyone kept suggesting was the mailto: function... Well thanks again for the help :mryellow: ----------------------------------- tarilotta Thu 13 Mar, 2008 05:54 Re: Click Submit->Send PM ----------------------------------- Alright, i found what i did wrong, and what you gave me worked, with a little editing.... Thank you so much for your help! :mryellow: ----------------------------------- tarilotta Sat 15 Mar, 2008 01:16 Re: Click Submit->Send PM ----------------------------------- Hey, I had everything working properly, I submitted the form numerous times with many different orders and it worked every time. So then I got an idea to try to make it cooler after i submitted it... well my idea didnt work so i restored it to what it was the first time when it was working (i copied the code somewhere else to it was saved exactly). After I put in the original code again and refreshed the file into the FTP so that the site would recognize it I tried to order something and the form came back to me blank. all of a sudden the reference things in the code, like $Name and $Quantity and stuff, aren't working. In my subject line i put "Order Form From $Name", this worked before, but now for some reason it isnt working. Do you know why this might be? ----------------------------------- Vortex Sat 15 Mar, 2008 01:44 Re: Click Submit->Send PM ----------------------------------- [quote user="tarilotta" post="26087"]Hey, I had everything working properly, I submitted the form numerous times with many different orders and it worked every time. So then I got an idea to try to make it cooler after i submitted it... well my idea didnt work so i restored it to what it was the first time when it was working (i copied the code somewhere else to it was saved exactly). After I put in the original code again and refreshed the file into the FTP so that the site would recognize it I tried to order something and the form came back to me blank. all of a sudden the reference things in the code, like $Name and $Quantity and stuff, aren't working. In my subject line i put "Order Form From $Name", this worked before, but now for some reason it isnt working. Do you know why this might be?[/quote] Post the code here please ;) ----------------------------------- tarilotta Sat 15 Mar, 2008 06:46 Re: Click Submit->Send PM ----------------------------------- this one is "form.php" [code] [/code] this one is way longer normally, but i took out some of the middle content that doesnt matter... its just option that the customer can choose from, Im just gonna shorten the list so its not so long... [code] Order Form In-Game Name:
Ship Name: Quantity:
If You Want It Refitted, Please Choose Which Type of Refit You Would Like:
Mastercraft:
Heavy:
Sleek:
Please enter what time of day would be best to contact you in game, please include time zone...

[/code] (This is for something for a game, people can order ships... thats why its got some funny names, lol) ----------------------------------- Vortex Sat 15 Mar, 2008 19:35 Re: Click Submit->Send PM ----------------------------------- [quote user="tarilotta" post="26117"] [code] Order Form In-Game Name:
Ship Name: Quantity:
If You Want It Refitted, Please Choose Which Type of Refit You Would Like:
Mastercraft:
Heavy:
Sleek:
Please enter what time of day would be best to contact you in game, please include time zone...

[/code] [/quote] In the html form, change the "id=" with "name=" ;) ----------------------------------- tarilotta Sat 15 Mar, 2008 22:35 Re: Click Submit->Send PM ----------------------------------- thats what i had originally and it didnt work so i checked back here to the one u said, because the form i have i made myself, and i figured i might as well try ising "id" instead of name... I just forgot to switch it back when i put it in here... but when it has "name" or "id" it doesnt work either way... ----------------------------------- tarilotta Sun 16 Mar, 2008 00:42 Re: Click Submit->Send PM ----------------------------------- I just redid my code and got it to work =] ----------------------------------- Vortex Sun 16 Mar, 2008 08:33 Re: Click Submit->Send PM ----------------------------------- [quote user="tarilotta" post="26204"]thats what i had originally and it didnt work so i checked back here to the one u said, because the form i have i made myself, and i figured i might as well try ising "id" instead of name... I just forgot to switch it back when i put it in here... but when it has "name" or "id" it doesnt work either way...[/quote] It's strange, I tested it with the "name" tag and fields were not blank anymore. [quote user="tarilotta" post="26226"]I just redid my code and got it to work =][/quote] Glad you solved. Did you figure out what the problem was? ----------------------------------- tarilotta Sun 23 Mar, 2008 00:41 Re: Click Submit->Send PM ----------------------------------- Well originally i had it labeled "name" --that didn't work Then i changed it to "id" --that didn't work Then i changed it back to "name" --that didn't work So i kept it as "name" for a day and sent myself like 13 forms throughout the day Then the next day i set them to "id" and, again, left it for a day and sent a bunch of the forms... Then the next day i set it back to "name" and it worked... So im still confused as to why it wasnt workin but im not gonna argue, its working now and i got other projects im workin on too, so im just happy it works now :mryellow: ----------------------------------- Xusqui Sun 23 Mar, 2008 12:32 Re: Click Submit->Send PM ----------------------------------- And don't you like "www.yourdomain.com/IP_Directory/contact_us.php" form? Greets! ----------------------------------- tarilotta Mon 24 Mar, 2008 04:55 Re: Click Submit->Send PM ----------------------------------- [quote user="Xusqui" post="26698"]And don't you like "www.yourdomain.com/IP_Directory/contact_us.php" form? Greets![/quote] To be honest im not quite sure what you were trying to say there... lol ----------------------------------- Xusqui Tue 25 Mar, 2008 08:01 Re: Click Submit->Send PM ----------------------------------- I mean... There is a contact form inside Icy Phoenix. You can see at www.icyphoenix.com/contact_us.php or www.phpbb-es/foro/contact_us.php or www.ka-tet-corp.com/portal2.0/contact_us.php Don't you like ti? or you need anything else? Greetz!!