Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

macaddict23

macrumors 6502
Original poster
Jun 20, 2006
382
1
MacVille, USA
Code:
<form action="gdform.asp" method="post">

<input type="hidden" name="subject" value="Form Submission" />

<input type="hidden" name="redirect" value="thankyou.html" />

<p>Name:<br>
<input type="text" name="Name" size="40" /></p>

<p>E-mail Address:<br>
<input type="text" name="email" size="40" /></p>

<p>Comments or Inquiries:<br>
<textarea name="comments" cols="70" rows="8"></textarea></p>

<p><input type="submit" name="submit" value="Submit"/>

</p>
</form>
This will be my first ever form. Above is the code that I currently have.

1) My understanding is that once the user hits the "Submit" button, the information entered will be sent to the server-side scripting language specified in the "<form action>" tag, in this case "gdform.asp". Correct?

2) I want whatever information entered to be sent to a specific email. My understanding is that I have to log-in to my GoDaddy account where I purchased the domain for this site, and under some "Settings" page, specify the email there?

3) If a user enters invalid information, how do I make a pop-up/error message stating just that?

Thanks in advance!
 
1) My understanding is that once the user hits the "Submit" button, the information entered will be sent to the server-side scripting language specified in the "<form action>" tag, in this case "gdform.asp". Correct?

A: Yes.

2) I want whatever information entered to be sent to a specific email. My understanding is that I have to log-in to my GoDaddy account where I purchased the domain for this site, and under some "Settings" page, specify the email there?

A: It doesn't have to be an email with them, it can be any email address. You just have to specify all that in your server side script.

3) If a user enters invalid information, how do I make a pop-up/error message stating just that?

A: You can use JavaScript to validate input before they submit it to the server side script, but you'll also want to validate on the server side as well as some people have JavaScript disabled, and the script kiddies submit directly to the script and bypass JavaScript. I have a feedback form on my site done with PHP and it's an all-in-one. By that I mean the form submits to itself and detects if it's a submission or an initial visit. Knowing that the script outputs different things, either the form, errors on the form (from server side validation), or a success message. There are other ways to do this though. Just Google around for ASP and submitting forms and you'll find tutorials.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.