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:
  #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: 25
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: 3
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: 3
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: 3
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: 3
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: 3
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




 Free IT White Papers!
 
Create the Optimal Architecture for your Critical Applications
Warburton's the largest independently owned bakery in the UK faced a number of difficult challenges in providing the most robust yet efficient IT infrastructure for their organization's success. IBM's services combined with their xSeries servers created the perfect platform for their SAP environment with sufficient flexibility, and did so in very time effective fashion.

Request Your Free Technology Downloads!
 
Five Best Practices for Deploying a Successful Service-Oriented Architecture
This white paper describes the benefits you can expect with SOA, and how IBM can help take your business there.

Request Your Free Technology Downloads!
 
Gartner Magic Quadrant for Application Delivery Controllers
Gartner summarizes its view on Application Delivery Controllers, evaluates strengths and weaknesses of solutions, and provides Magic Quadrant reporting for a quick comparison across all vendors. Learn from Gartner how you can benefit from an all-in-one device like Citrix NetScaler that delivers the highest levels of availability, performance and security.

Request Your Free Technology Downloads!
 
Knowledge is Power
What you don't know can hurt you, and is likely costing you money and increasing your security risks during an era of scarce resources. This white paper proposes six key strategies that enterprise security managers can use to improve their network defense posture.

Request Your Free Technology Downloads!
 
Rationalizing the Multi-Tool Environment
The rationalized multi-tool approach is flexible, scalable and cost effective. It provides the necessary input to the IT service management business processes. It preserves prior investments in monitoring tools, empowers technologists to select the best tools with which to do their jobs, and enhances effective response to incidents.

Request Your Free Technology Downloads!
 

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




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 12 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek