Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
migzwebhost is on a distinguished road
 
Posts: 4
Join Date: Jan 2012
Default HELP: PHP script - 01-27-2012, 11:19 AM

Hello guys, I badly need your help because in my website, there is a feedback form I installed and specially coded by me, the problem is, after I filled up myself the form, the script is not obeying the commands.

Where is the problem all about?
Is it in my coding on the PHP script?
OR
I have wrote a wrong source?

what is the proper and recognizable by this web hosting site?
I use
<form action="send_mail.php" method="post">

If you want to see my PHP Script, I attached it already.
My website is http://migzremulta.hostoi.com/index.html

P.S. I am still working with my Feedback form xD
Attached Files
File Type: txt send_mail.php.txt (2.0 KB, 5 views)
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 4,609
Join Date: Jul 2009
Location: Spain
Default 01-27-2012, 12:00 PM

It would be good to indicate any error messages.

To solve the problem, I start to change the calls to the $_REQUEST array by the array $_POST.

For example, the following piece of code where you write:
PHP Code:
$website $_REQUEST['website'];
$url $_REQUEST['url'];
$first_name $_REQUEST['first_name'];
$last_name $_REQUEST['last_name'];
$email $_REQUEST['email'];
$suggestions $_REQUEST['suggestions'] ;
$comments $_REQUEST['comments'] ; 

I would write the following code:
PHP Code:
$website $_POST['website'];
$url $_POST['url'];
$first_name $_POST['first_name'];
$last_name $_POST['last_name'];
$email $_POST['email'];
$suggestions $_POST['suggestions'] ;
$comments $_POST['comments'] ; 
In total you have to replace the 8 occurrences of text $ REQUEST to $_POST.


Si este mensaje te ha servido de ayuda no dudes en pulsar sobre el botón karma
Reply With Quote
(#3 (permalink))
Old
Junior Member
migzwebhost is on a distinguished road
 
Posts: 4
Join Date: Jan 2012
Default 01-28-2012, 03:24 AM

Thanks a lot!

Can you help me site the correct source of this image which I supposed to place as the title?

I wrote:
<center><img src="feedback.png"></center>
or should I wrote:
<center><img src="/public_html/feedback.png"></center>

Im not sure if Im correct with this because when Im still using geocities, it works fine.

Which one is correct? Are both of them wrong? Please help me by coding the correct one!

Thanks in advance!

P.S. Really Need Your Help
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com