28, May 2012

Redirection question - webmaster forum

 
Webdigity webmaster forums
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Redirection question
« previous next »
Pages: [1] Print
Instabuck - The easy way to sell digital products online

Author Topic: Redirection question  (Read 2901 times)
Der Führer
I feel pretty...
***
Gender: Male
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: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #1 on: Jul 15, 2006, 08:24:14 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.


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: Male
Posts: 184
481 credits
Members referred : 0



« Reply #2 on: Jul 15, 2006, 08:49:54 am »

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

How else would I make it w/o the php?
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #3 on: Jul 15, 2006, 09:50:41 am »


How else would I make it w/o the php?

its about to build a form with standard html and php code, my advice was about to skip the javascript functions

Der Führer
I feel pretty...
***
Gender: Male
Posts: 184
481 credits
Members referred : 0



« Reply #4 on: Jul 15, 2006, 09:54:18 am »

oh I see
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 5799
46391 credits
Members referred : 3



« Reply #5 on: Jul 15, 2006, 12:27:49 pm »

You can also do this with Ajaz, but I am not sure if this is what you want.

Trial and Error my two best teachers Cool
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #6 on: Jul 15, 2006, 04:36:04 pm »

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 Wink

Der Führer
I feel pretty...
***
Gender: Male
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: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #8 on: Jul 16, 2006, 11:03:32 am »

start with sending a mail from your form, check this snippet:
http://www.finalwebsites.com/snippets.php?id=3

Der Führer
I feel pretty...
***
Gender: Male
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: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #10 on: Jul 16, 2006, 12:01:46 pm »

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
Tags : php javascript html snippets email Bookmark this thread : Digg Del.icio.us Dzone more....

Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  PhP
Topic: Redirection question
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 12:15:49 pm





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!






Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2012 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.