Thread: Submit Buttons [in forms]
Results 16 to 28 of 28
Related
-
CSS Buttons and the Submit Forum: CSS Forum
Replies: 5 -
Multiple Submit buttons Forum: HTML Forum
Replies: 3 -
Submit / Reset / Browse Buttons Forum: CSS Forum
Replies: 1 -
multiple submit buttons in single form Forum: HTML Forum
Replies: 7 -
Images with submit buttons Forum: HTML Forum
Replies: 1
-
11-11-2003, 08:07 PM #16
No I just checked and .Mac does not support PHP as well as a hand full of other things =[ Is there a way I can do the same thing through HTML? Seems to be my last option besides getting another place to host my site.
-
11-11-2003, 09:01 PM #17
the only 'pure' html method is to put an 'action="mailto:badger@set.com"' , but this only works in 2% of cases , sorry
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
11-13-2003, 09:51 AM #18
okay i have found a free web host that supports php and have ut my site online temporarily to work out this problem. You can visit it at:
http://www.weaponsdatabase.frandt.com/advertising
Now when I click the submit button I recieve an error message like page can not be displayed. You can get the source for the page from there and here is the PHP script I am using:
<?
// Filename: mailer.php
// Generic Emailer
// Default Settings
$redirect = "My_thank_you_page.html";
// First, detects whether info is received via form -
$recipient = "email removed";
$subject = "Advertising on WDB";
$from = "From: My Website Emailer";
$email = "
";
$data = $HTTP_POST_VARS;
foreach($data as $k => $v) {
$k = stripcslashes($k);
$v = stripcslashes($v);
$email .= "\n$k : $v";
}
mail($recipient, $subject, $email, $from);
header("Location: $redirect");
?>
-
11-13-2003, 02:54 PM #19
Your form Action is incorrect, pointing to the wrong place. Make sure its pointed at wherever you saved mailer.php
If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
11-13-2003, 06:01 PM #20
I have all of my files in one folder. Yes it is unorganized but thats where all the files are so how can I point to it?
-
11-13-2003, 06:18 PM #21
well, where is mailer.php ? only you know.
Is it here - http://www.weaponsdatabase.frandt.com/advertising/mailer.php ? because your form is not pointing there, its pointing at http://www.weaponsdatabase.frandt.com/mailer.phpIf one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
11-13-2003, 06:20 PM #22
Its working fine. You have set the $redirect to "thanks". There is no filename called thanks so it gives a 404
You should be getting emails from it. Im worried that I can see the php when I look at mailer.php tho. Sounds like its not working.If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
11-13-2003, 06:35 PM #23
No I am not recieving emails from it. Look, I am using a mac and a program called trasmit to upload stuff here is what is currently in the wwwroot folder:
http://www.weaponsdatabase.frandt.com/picture%208.pdf
everything seems to be in the right spot.
-
11-13-2003, 06:47 PM #24
look here -
http://www.weaponsdatabase.frandt.com/mailer.php
You can see the php source. You should not be able to, as php is processed at the server end and the results transmitted to browser. This is not happening here. Again, best to speak to your host as to why PHP is not being parsed properly.If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
11-13-2003, 07:03 PM #25
When I clicked the link it downloaded the PHP to my computer, I will speak to the support guys about this and let you know what happens.
-
11-13-2003, 07:34 PM #26
Originally Posted by ZIonsWrath
Try to chmod it to 755, if you do not know what this is let me know and post what ftp you are using.
Dave
-
11-14-2003, 09:35 AM #27Look, I am using a mac and a program called trasmit to upload stuff
-
11-14-2003, 08:24 PM #28
oops, I missed that.
Oh well I never heard of it, guess we will wait to see what the host says.
Dave
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum