Der Führer
I feel pretty...
Gender:
Posts: 184
481 credits Members referred : 0
« on: Jul 15, 2006, 03:50:12 am »
My issue is this. I made a new contact form (http://www.silent.2dollarhost.net/contact/index.html). This form has a dhtml pop up window. In this window there is a regular table with a submit button. The submit button send the information to a php page that send it to my email. The page then send the user to a page (code below).
Code:
header ("Location: index.html");
My question is this. Is it possible to close the window and add a <div> layer to float in the top left corner that says the email was recieved. I want to try to do all this without making a separate page.
Thanks agian.
-----Edit----- my friend told me to do tihs but im not sure exactly what to do because i know very little about php.
Quote
pass a variable in the confirmation like popup=1 and on the index.php make a code for the javscrpt to popup if popup=1 <?php if ($popup == "1") { print "<javascript>PopperUpper On</javascript>"; } ?>
« Last Edit: Jul 15, 2006, 08:06:27 am by Silent77 »
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
My issue is this. I made a new contact form (http://www.silent.2dollarhost.net/contact/index.html). This form has a dhtml pop up window. In this window there is a regular table with a submit button. The submit button send the information to a php page that send it to my email. The page then send the user to a page (code below).
Code:
header ("Location: index.html");
My question is this. Is it possible to close the window and add a <div> layer to float in the top left corner that says the email was recieved. I want to try to do all this without making a separate page.
redirect to the page where your form is and use an "if" clause to show some conditional information: IF (SUBMITTED) SHOW MESSAGE ELSE SHOW FORM
you don't need more then one file for a contact form, the other things you ask is possible with javascript (the floating thing)
first trry to build a worlking mail form without other functions, otherwise you will mess it up...
Der Führer
I feel pretty...
Gender:
Posts: 184
481 credits Members referred : 0
You can also do this with Ajaz, but I am not sure if this is what you want.
ahem... Nick keep it simple for silent, he is a beginner
Der Führer
I feel pretty...
Gender:
Posts: 184
481 credits Members referred : 0
« Reply #7 on: Jul 15, 2006, 11:06:28 pm »
yeah lol I am.
But back to the point if i want to stick with the design/setup I have now can I do what I said with php/javascript? How would the code look, thats my main problem (I don't know enough php to do this).
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
Der Führer
I feel pretty...
Gender:
Posts: 184
481 credits Members referred : 0
« Reply #9 on: Jul 16, 2006, 11:33:22 am »
Thats a lot like what I was useing check out the base of my set up http://silent.2dollarhost.net/contactform.zip zip fodler has 2 files. Its pretty much the same thing only the html posts the input information on the contact_handle.php
Global Moderator Community Supporter?
Jedai Sword Master
Gender:
Posts: 6691
34714 credits Members referred : 374
Thats a lot like what I was useing check out the base of my set up http://silent.2dollarhost.net/contactform.zip zip fodler has 2 files. Its pretty much the same thing only the html posts the input information on the contact_handle.php
my snippet is nothing special, but first you have to learn how to send mail with one file (and form)
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=3294