PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old August 10th, 2002, 08:55 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
  #2  
Old August 10th, 2002, 09:22 AM
chobo4ever chobo4ever is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Vienna, Austria
Posts: 63 chobo4ever User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 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...

Reply With Quote
  #3  
Old August 10th, 2002, 09:46 AM
EvilivE EvilivE is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Milwaukee, WI USA
Posts: 291 EvilivE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via Yahoo to EvilivE
RE: an original photographic print to the person who can help me

You SUBMIT calls "get.asp" _NOT_ "send_info.php".

Reply With Quote
  #4  
Old August 10th, 2002, 09:52 AM
Jay Jay is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 Jay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #5  
Old August 10th, 2002, 10:01 AM
EvilivE EvilivE is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Milwaukee, WI USA
Posts: 291 EvilivE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via Yahoo to EvilivE
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.

Reply With Quote
  #6  
Old August 10th, 2002, 10:19 AM
Jay Jay is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 Jay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #7  
Old August 10th, 2002, 10:43 AM
EvilivE EvilivE is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Milwaukee, WI USA
Posts: 291 EvilivE User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via Yahoo to EvilivE
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);

Reply With Quote
  #8  
Old August 10th, 2002, 10:56 AM
Jay Jay is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 3 Jay User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #9  
Old August 10th, 2002, 11:59 AM
Gipz Gipz is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Stockholm, Sweden
Posts: 98 Gipz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
Send a message via ICQ to Gipz
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)...


Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > an original photographic print to the person who can help me


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway