LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-27-2004, 03:15 PM   #1
cadkins
Member
 
Registered: Mar 2004
Location: <----- there
Distribution: Mandrake 9.0 - 9.2, Slackware 9.1 - 10
Posts: 98

Rep: Reputation: 15
Form not sending mail using includes... PHP


I have a form that will send an email to me as well as an auto-responder. Typical stuff for right now.

If I test the form using the full path : http://www.mojotone.com/pages/emailPage.php
then everything works fine. But, if I just use an include it doesn't. Like http://www.mojotone.com/index.php?link=email

Here is the php code in text format

I have a feeling it something really stupid.

Thanks in advance.
 
Old 04-27-2004, 03:24 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
"it doesn't" is a bit broad. it doesn't what? include or send?

What does index.php look like?
 
Old 04-27-2004, 03:26 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Ah - I see what I think you mean - it doesn't send right?

Try changing:
<form action="<? echo $_SERVER['PHP_SELF'];?>" method="post" name="contactus" id="contactus" onSubmit="return validateme(this)">

To:
<form action="/pages/emailPage.php" method="post" name="contactus" id="contactus" onSubmit="return validateme(this)">
 
Old 04-27-2004, 06:38 PM   #4
cadkins
Member
 
Registered: Mar 2004
Location: <----- there
Distribution: Mandrake 9.0 - 9.2, Slackware 9.1 - 10
Posts: 98

Original Poster
Rep: Reputation: 15
actually i just needed to change:
<form action="<? echo $_SERVER['PHP_SELF'];?>"

to:

<form action="<? echo $_SERVER['PHP_SELF']'.'?link=email';?>"
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP includes lawadm1 Linux - Software 1 08-21-2004 04:20 PM
Sending a form to an email address problems! cucolin@ Programming 1 06-23-2004 05:21 AM
Sending mail with PHP on linux machine through exchange on Windows server 2003 TVScoundrel Linux - Newbie 1 06-18-2004 01:22 PM
Sending mail with PHP on linux machine through exchange on Windows server 2003 TVScoundrel Linux - Networking 2 06-18-2004 12:02 PM
Sending mail with PHP and sendmail. davemar Linux - General 10 06-11-2004 04:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration