Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Making forms (not forums)  (Read 13924 times)

0 Members and 1 Guest are viewing this topic.

Zylstra

    Topic Starter
  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: Making forms (not forums)
« Reply #15 on: June 24, 2006, 12:55:45 PM »
I bet you that I dont have any "POST" variables. I bet there all set to "GET"

Lets find out...


connecting to remote server...
sorting list of remote folders...
It was set to "GET"
I changed it to "POST"
I will see what happens now.


-----POST MERGE-----


Changed "GET" to "POST" and it didnt work.
 
I did give the server time to update.  
 
All I get is:
 
Date: 6/24/2006 14:01:14 -0500
From: Nobody <[email protected]>
To: [email protected]
Subject: Message from the feedback form  All headers  
 
Sent by  
 
  
 
 
 
and nothing more. What could be the problem?
 
 
(BTW: Im not the best at this "form" stuff. It could just be a simple error or something missing. But I dont know what.)
« Last Edit: June 24, 2006, 01:10:20 PM by zylstra555 »

Zylstra

    Topic Starter
  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: Making forms (not forums)
« Reply #16 on: June 24, 2006, 01:09:53 PM »
4| $body_of_message= $_POST['message']. "\n";
5| $body_of_message .= "Sent by" . $_POST['name'];

I see the words "Sent By" in each message I get.
Should the above lines have something different?

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: Making forms (not forums)
« Reply #17 on: June 24, 2006, 02:32:23 PM »
At the top of your script please add the following:
<?php print_r($_POST); ?>
Please then show the results - this will print the contents of the $_POST array.
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos

Zylstra

    Topic Starter
  • Moderator


  • Hacker

  • The Techinator!
  • Thanked: 45
    • Yes
    • Technology News and Information
  • Certifications: List
  • Computer: Specs
  • Experience: Guru
  • OS: Windows 7
Re: Making forms (not forums)
« Reply #18 on: June 24, 2006, 02:38:03 PM »
This appears when you submit the form

Array
(
    [name_nickname] => name
    [date_created] => date
    [My_notes_to_add_on_site] => notes
    [my_email] => email
    [show_my_email] => checkbox
    [my_commet] => commets
    [my_website] => website
    [I_agree_to_let_you_change_my_notes_name_and_any_info_you_provide_to_me] => checkbox
    [Send] => Send
)

Your message was sent.

Email recived shows as:
Sent by



I have made a special directory on my site to show what this is supposed to do, it contains most of the previous code, but was somewhat altered.

Please visit www.jessez.mbhosting.com/chtest/ for more information
« Last Edit: June 24, 2006, 02:45:09 PM by zylstra555 »