Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
testy1
Involved
Involved


Joined: Apr 06, 2008
Posts: 484

PostPosted: Mon Oct 27, 2008 8:31 pm Reply with quote

I needed a module that will allow people to schedule a service to get the computer repaired.The module would only have to notify via email so I thought I would modify the feedback module.

all went well except It wont seem to pass the drop down box information.Actually it pass's it but wont send it in the email.Im sure it is something simple.

Here is how I have coded it but I have also included the complete script in case it is needed.

Code:


echo '<td >How did you hear about us?</td>' . "\n";
echo '<td><select name="found_us" value=""'.$found_us.'"" id="found_us">' . "\n";
echo '  <option>Select -- &gt;</option>' . "\n";
echo '  <option value="Flyer">Flyer</option>' . "\n";
echo '  <option value="Friend">Friend</option>' . "\n";
echo '  <option value="Google">Google.com</option>' . "\n";
echo '  <option value="yellow_pages">Yellowpages</option>' . "\n";
echo '  <option value="Newspaper">Newspaper</option>' . "\n";
echo '  <option value="Telephone Book">Telephone Book</option>' . "\n";
echo '  <option value="Used Before">Used Before</option>' . "\n";
echo '  <option value="Yahoo.com">Yahoo.com</option>' . "\n";
echo '  <option value="Other Search Engine">Other Search Engine</option>' . "\n";
echo "\n";
echo '</select></td>' . "\n";


I have checked what is being passed via the browser and it is displaying the following....

Code:


POST: Array
(
    [sender_name] => Peter
    [sender_email] => Only registered users can see links on this board! Get registered or login!
    [phone_number] => 0732880377
    [found_us] => Flyer
    [restore_disk] => Yes
    [operating_system] => Windows XP
    [network] => 4 Computers
    [internet] => ADSL
    [problem] => blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah
    [opi] => ds
    [Submit] => Submit
)


And this is what I receive in the email....

Code:


My Sitename

Sender's Name: Peter
Sender's Email: Only registered users can see links on this board! Get registered or login!
Subject: My Sitename - Service Needed

Phone Number: 732880377
How You Found Us: Flyer
O/S: Windows XP
Network: 4 Computers
Internet Connection: ADSL
Message: blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah


and here is the complete file Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
testy1
PostPosted: Mon Oct 27, 2008 8:36 pm Reply with quote

I new it was something simple there was a ten minute time delay on the emails, and because I sent to many I looked at the wrong one.....argggggggh....

oh and I forgot to add in restore disk but thats simple enough....so ignore my stupidity Sad
 
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 17086

PostPosted: Mon Oct 27, 2008 9:10 pm Reply with quote

Smack
 
View user's profile Send private message
testy1
PostPosted: Mon Oct 27, 2008 9:32 pm Reply with quote

I intend to smack myself around for that one...Unless I can find someone to blame Smile
Smack
 
testy1
PostPosted: Tue Oct 28, 2008 1:36 am Reply with quote

ok at the risk of looking exceptionally stupid Sad

the only thing im having trouble with is the validation for the drop down box's, the rest of the validation works fine....

If someone could have a quick look when they have time it would be appreciated.
Only registered users can see links on this board! Get registered or login!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©