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
submit form in iframe from parent form
Old 08-13-2007, 02:56 AM submit form in iframe from parent form
Junior Talker

Posts: 2
Location: Malaysia
Trades: 0
how can I submit form in other php file which I have called it by using ifram
I have wrote this code but it not run.

<input type="button" id="s" name="s" value="submit ID" onClick="javascript:submitPer();">

<iframe name="form11" src="perSearch.php" frameborder="0" width="680" height="150"></IFRAME><br>

---------
this is javaScript function which should be submit form11
function submitPer(){
window.parent.frames['form11'].document.all('form11').submit();
}

I am waiting for ur suggestion thank you all
Heba07 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-13-2007, 04:36 AM Re: submit form in iframe from parent form
JamieLewis's Avatar
Pretty Much a Big Deal...

Latest Blog Post:
Gooie
Posts: 385
Name: Jamie Lewis
Location: UK
Trades: 0
Why are you using an iframe when you access to server side processing in the form of php??? It makes no sense at all. Simply include the form file into the original document, it will be more accessible and a far far easy solution.

Jamie
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
JamieLewis is offline
Reply With Quote
View Public Profile Visit JamieLewis's homepage!
 
Old 08-13-2007, 08:55 AM Re: submit form in iframe from parent form
dlaroche22's Avatar
Skilled Talker

Posts: 84
Name: Dustin Laroche
Trades: 0
Agree! KISS, Keep It Simple Stupid. No offense just a friendly tip.
dlaroche22 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to submit form in iframe from parent form
 

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.11779 seconds with 12 queries