CodingEmail contact forms

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Peter (BOUGHTONP)  
 To:  Jo (JELLS)      
31245.9 In reply to 31245.8 
Try saving this:
PHP code:
<?php
echo "php is active";
?>

in a something.php file, putting it on the server, and seeing what happens when you run it in the browser.

A form would work simply by sending the values to an action page, which would be a PHP script, but there's not much point explaining that without knowing if PHP actually works. :)
0/0
 Reply   Quote More 

 From:  Jo (JELLS)   
 To:  Peter (BOUGHTONP)     
31245.10 In reply to 31245.9 
Ta... i'll try that and let you know what happens - which will be in about an hour as i'm not at my desk at the moment.
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Jo (JELLS)      
31245.11 In reply to 31245.10 
No problem. I'll probably still be here in an hour, since I'm waiting for several slow downloads to complete. :(
0/0
 Reply   Quote More 

 From:  Jo (JELLS)   
 To:  Peter (BOUGHTONP)     
31245.12 In reply to 31245.9 
I'm sort of assuming that i'm supposed to make "echo" a link by adding <a href="...." to that sample bit of code, right?
0/0
 Reply   Quote More 

 From:  Serg (NUKKLEAR)  
 To:  Jo (JELLS)      
31245.13 In reply to 31245.12 
Nope, just type it in exactly as Pete said, and save it as "test.php" or something.
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Jo (JELLS)      
31245.14 In reply to 31245.12 
Nope. Echo is a simple PHP command that says "interpet and display this code".
So echo 5+3; will output 7, and echo saySomething('funny'); would return the results of a function called saySomething (if one existed).
In this case it's just returning a string.

Short important bit:
If you see just the text php is active, that's good.
If you see nothing, or you see the whole echo "php is active"; - that's bad.
0/0
 Reply   Quote More 

 From:  Serg (NUKKLEAR)  
 To:  Peter (BOUGHTONP)     
31245.15 In reply to 31245.14 
Hah! (though yours is far more complete)
0/0
 Reply   Quote More 

 From:  Jo (JELLS)   
 To:  ALL
31245.16 

Right... i'm thinking the server doesn't support php:

 

http://www.montreal.ca.emb-japan.go.jp/test/test.php

0/0
 Reply   Quote More 

 From:  Jo (JELLS)   
 To:  Peter (BOUGHTONP)     
31245.17 In reply to 31245.14 
Ok, so i can't use php either...

What about a remotely hosted CGI script such as the one offered here?

I know there are others, but that one says it doesn't require any ads on the site, which is good.
0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Jo (JELLS)      
31245.18 In reply to 31245.17 
Hmmm, not sure how I'd feel about a compnay that used a third-party CGI service in this day and age, but it does appear to be your only option.

Well, aside from telling the translator to say "stop being fuckwits and give us full server access".
0/0
 Reply   Quote More 

 From:  Jo (JELLS)   
 To:  Peter (BOUGHTONP)     
31245.19 In reply to 31245.18 

I can understand why they do it this way - if other missions are like our office, the people in charge of the websites are totally clueless. I'm the most knowledgeable person in our office when it comes to this stuff, and that's not saying much! Prior to me being handed this stuff, it was the JET programme coordinator who took care of teh website and i use that phrase loosely. They were never hired because they knew anything about websites - they were only informed after being hired that they had to also do the website.

 

So yeah, the ministry is probably right to severely limit what can be uploaded. The irony is that every year they ask us to provide stats about how the site is used - we can't generate any of those reports! Their own tech people could, however...

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  Jo (JELLS)      
31245.20 In reply to 31245.19 
Then convince them to hire someone who knows what they're doing to work there.

Infact, get them to pay me $110k a year and I'll do it. :)
0/0
 Reply   Quote More 

 From:  Jo (JELLS)   
 To:  Peter (BOUGHTONP)     
31245.21 In reply to 31245.18 
FYI - i registered with that remote-hosted CGI site and have tried a test form to see what it's like. I think it looks fine - no ads, no pop-ups, only a small mention of the service. If i can get it to work in Japanese too, i may give it a go.
0/0
 Reply   Quote More 

Reply to All    
 

1–20  21

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats