What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » html form/javascript help

html form/javascript help
Author: Message:
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: html form/javascript help
Oh right you wanted to carry it over to the popup which is easily done through GET methods.
code:
<form action='' method="post" onSubmit="window.open('script.php?submit=' + this.elements['submit'].value + '&name=' + this.elements['name'].value, 'WindowName', 'height=100,width=100'); setTimeout(window.location, 2000); return false;">
    <input type="text" name="name" /> <!-- just testing -->
    <input type="submit" name="submit" value="Submit" />
</form>
And I tested this in a file called script.php:
code:
<?php
$tf = (isset($_GET['submit'])) ? "True" : "False";
$name = (isset($_GET['name'])) ? $_GET['name'] : "False";

echo $tf;
echo "<br />";
echo $name;
?>
Which outputted:

    True
    Boo (this being what I put in the name input).
Only downside is that you have to put all of the names of the input boxes that you want to send over to script.php in the window.open() function.

This post was edited on 10-26-2006 at 10:26 AM by hmaster.
[Image: sig.png]
10-25-2006 07:40 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
html form/javascript help - by MeEtc on 10-24-2006 at 03:17 PM
RE: html form/javascript help - by rav0 on 10-25-2006 at 07:36 AM
RE: html form/javascript help - by hmaster on 10-25-2006 at 10:09 AM
RE: html form/javascript help - by MeEtc on 10-25-2006 at 12:14 PM
RE: html form/javascript help - by hmaster on 10-25-2006 at 07:40 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On