|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
an original photographic print to the person who can help me
Hey guys and gals,
I'm stumped and getting no help from my f-word hosting company. Here's the deal... I had a very simple mail form on my site that used to work and now doesn't for no apparent reason. I'm actually hoping it is something so stoopid, perhaps even something that I did! Here's the html code for my mail form named contact2.htm: <html> <head> <title></title> </head> <body> <form method=post action="send_info.php"> <b>name:</b><br><input type="text" name="name"><br> <b>email:</b><br><input type="text" name="email"><br> <b>comments:</b><br><textarea name="comments" cols="20" row="50"></textarea> <input type="submit" name="submit" value="add"> </form> </body> </html> and here's my php code in a file named: send_info.php <? mail("jason@tinacciphoto.com" , "Feedback" , "From: $namenEmail address: $emailnTheir comments: $comments"); header("Location:http://www.tinacciphoto.com/thanks.htm"); /* Redirect browser */ exit; /* Make sure that code below does not get executed when we redirect. */ ?> Simple right? But why doesn't it work?! When you submit, none of the variables transfer. Please try it to see what I mean -- http://tinacciphoto.com/contact2.htm Now for the prize. I will send an original 8x10 to the person who can help me get this working. Pick any image off my site and it's yours. Mailed right to your doorstep. Thanks for your time. -Jay |
|
#2
|
|||
|
|||
|
RE: an original photographic print to the person who can help me
I´m not a pro, but first Id look, what it looks like when you set your method to "get" instead of "post". So you´ll see if the variables get transfered in the adress bar. then (after it worked and you set it back to "post"), try to use $_POST['Feedback'] to get the variables. If that doesnt work, I cant imagine anything else...
|
|
#3
|
|||
|
|||
|
RE: an original photographic print to the person who can help me
You SUBMIT calls "get.asp" _NOT_ "send_info.php".
|
|
#4
|
|||
|
|||
|
RE: an original photographic print to the person who can help me
Sorry for being vague, but I didn't quite follow what the last post meant. Can you explain?
-Jay |
|
#5
|
|||
|
|||
|
RE: an original photographic print to the person who can help me
Sure.
Your forms action is not set to "send_info.php" it is set to "get.asp". Unfortuneately I cannot help with your ASP script, I don't know the language. |
|
#6
|
|||
|
|||
|
RE: an original photographic print to the person who can help me
Ahh, you must have caught it during a test. I do have action="send_info.php"
Any other thoughts? |
|
#7
|
|||
|
|||
|
RE: an original photographic print to the person who can help me
Try this:
$msg = "Sender: ".$_POST['name']."nEmail Address: ".$_POST['email']."nTheir Comments: ".$_POST['comments']; mail("jason@tinacciphoto.com", "Feedback", $msg); |
|
#8
|
|||
|
|||
|
RE: an original photographic print to the person who can help me
Finally!!!
You rock! The offer for the print still stands. Email me the name or description of any image and it's yours. Thanks again, Jay |
|
#9
|
|||
|
|||
|
RE: an original photographic print to the person who can help me
The reason for why this happend is probebly because your webhost upgraded to PHP 4.2.2 where register_globals is default set to off. That explains why your "variables didn't transfere" (well they did but not as they used to)... |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > an original photographic print to the person who can help me |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|