Hello everyone, I'm in need of some help. I created a simple customer information page requesting name, address, etc., with a submit button. That when clicked it will give you a Thank you statement. But I cannot seem to get it to work right. Can somone give me some pointers.
Submit button!!!
Collapse
X
-
Tags: None
-
question for you:Originally posted by ghostriderHello everyone, I'm in need of some help. I created a simple customer information page requesting name, address, etc., with a submit button. That when clicked it will give you a Thank you statement. But I cannot seem to get it to work right. Can somone give me some pointers.
What actions do you have for your submit button.
Are you emailing the info or is it going into a db. (database)
what part are you having problems are.
click the submit button then it redirect you to the thank you page.
What languages are you using html and php?
nomadComment
-
I'm using html. I would like for it to say thank you when it is done. If I understand it correctly I need to save it as a link that the button points to right, so when it is clicked it will know to open that link?Originally posted by nomadquestion for you:
What actions do you have for your submit button.
Are you emailing the info or is it going into a db. (database)
what part are you having problems are.
click the submit button then it redirect you to the thank you page.
What languages are you using html and php?
nomadComment
-
Understood will post it once I get off work.Originally posted by eWishWe can not help without seeing the markup. It may not even be an HTML or CSS issue.
--KevinComment
-
You are some what right..Originally posted by ghostriderI'm using html. I would like for it to say thank you when it is done. If I understand it correctly I need to save it as a link that the button points to right, so when it is clicked it will know to open that link?
When you click the submit button it does two things.
1. send the info the client input ie email, db
2. then it redirect to a thank you page.
Might look like this on your php page
nomadCode:// send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=thankscontact.htm\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; }Comment
-
Hey is what I have:
[CODE=html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<!-- Created with the CoffeeCup HTML Editor 2007 -->
<!-- http://www.coffeecup.c om/ -->
<!-- Brewed on 2/18/2008 4:33:53 PM -->
<head>
<title>Custom er Information</title>
</head>
<body>
<form>
First name:
<input type="text" name="firstname " size="20">
<br>
Last name:
<input type="text" name="lastname" size="20">
<br>
Address:
<input type="text" address="addres s" size "50">
<br>
City:
<input type="text" city="city" size="20">
<br>
State:
<input type="text" state="state" size="2">
<br>
Zip Code:
<input type="text" zip code="zipcode" size="5">
<br>
<input type="submit" value="Submit Button">
</form>
</body>
</html>[/CODE]Comment
-
Your basic problem is this that you are not sending the data anywhere. This is an example of what the first line should look like.
[CODE=html]<form name="Some Name" method="POST" action="some_se rver_side_scrip t.pl">[/CODE]
You will need a server-side language to achieve what you want. Therefore, this is not an HTML or CSS issue.
HTML Forms and Inputs
--KevinComment
-
-
Comment