Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
E-mail form and parent window
Old 05-26-2006, 06:54 AM E-mail form and parent window
Experienced Talker

Posts: 49
Location: Pula, Istra, Croatia
Trades: 0
How do I do that an e-mail form that opens in a pop-up windows gets a data from parent window?

I want that my e-mail form has a field with data of specific name/info from parent window.In that way I can see for which page an e-mail has been sent.
I dont want a link to a page, it can be any other number/name or something else whit which I can identify which is that listing.

My other solution is that every listing has its own e-mail form (html...and submit button gets email.php)....but in that way its little tougher to post listings.Every time I need to edit a form field to suit my needs.
shile is offline
Reply With Quote
View Public Profile Visit shile's homepage!
 
 
Register now for full access!
Old 05-26-2006, 07:25 AM Re: E-mail form and parent window
Experienced Talker

Posts: 31
Trades: 0
Thats pretty simple actually
HTML Code:
<html>
<head>
<title>Example</title>
<script type="text/JavaScript">

function do_feedback() {
    var this_page = window.location.href;
    window.location = "feedback_form.html?from_page=" + this_page;
}
</script>
</head>
<body>
<a href="#" onclick="do_feedback();">Feedback</a>
</body>
</html>
Save that HTML as a page and see what happens when you click the link, do you understand how to incorporate that into your current pages?
.:origin:. is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to E-mail form and parent window
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.62761 seconds with 12 queries