473,385 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Help please!

I'm struggling sending the information from one page to the next!

I have two textboxs on the page that I wish to send the data to the next page.

This is my code, but i'm fairly new to this and not sure what is wrong

<form name="form1" method="post" action="response_time_actions.php">
<div align="center">
<p>&nbsp;</p>
<p><span class="rowColumnTitle style2">Description:</span><span class="style2"> This tool will bring up the current response time of the service that you enter and on which Unix box you enter. </span></p>

<p align="center">&nbsp;</p>
<font face="Verdana, Arial, Helvetica, sans-serif">
<table width="53%" border="1">
<tr>
<td width="170" height="41"><strong><font face="Verdana, Arial, Helvetica, sans-serif">Please Enter : </font></strong>
<tr >
<td align="center"><label>Unix Box
<input type="text" name="textfield">
</label></td>

<td><label>Service
<input type="text" name="textfield2">
</label>
<div align="center"></div></td>
</tr>
<tr>
<td align="center" colspan="1"><input name="button" type="button" onClick="window.location.reload()" value="Refresh This Page"></td>

</tr>
<td colspan="2" align="center"><p>
<input name="submit" type="submit" value="Execute Command 22" method="POST" onClick="window.open('response_time_actions.php',' RESPONSETIME','width=460,height=600,resizable=yes, status=yes'); return false" >
</p>

</td>
</tr>

</table>
<br>
<font face="Verdana, Arial, Helvetica, sans-serif"> </font>
<p>&nbsp;</p>
</div>
</form>
Jun 7 '07 #1
1 952
ronnil
134 Expert 100+
and what does your php page look like?

maybe it's not recieving anything because you make a window.open statement but doesn't really post anything to it

Expand|Select|Wrap|Line Numbers
  1. <script language="javascript">
  2. function submitFunction()
  3. {
  4.    var newWindow = window.open('','mywindow','width=600,height=400');
  5.   document.getElementById('my_form').submit();
  6. }
  7. </script>
  8. <form id="my_form" action="your_page.php" target="mywindow">
  9. <!-- your form stuff here -->
  10. <input type="button" name="submit" value="your button value" onclick="submitFunction()"/>
  11. </form>
  12.  
this way you open the window, and afterwards submits the form

in theory this should work ;)

btw, if you want to reset a form, instead of reloading the page (which takes up unnescessary bandwidth and keeps the user waiting) you can use:

Expand|Select|Wrap|Line Numbers
  1. <input type="reset" value="reset form"/>
Jun 7 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title>...
5
by: Craig Keightley | last post by:
Please help, i have attached my page which worksin IE but i cannnot get the drop down menu to fucntion in firefox. Any one have any ideas why? Many Thanks Craig ...
23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
5
OraMaster
by: OraMaster | last post by:
Hi All, Please suggest how to improve performance of below SQL to me. I tried but it's not showing any improvement. Thanks in advance!!! SELECT ci.ind_cst_key AS q39_key , ...
2
by: manarq8 | last post by:
plz help me in this Q Write a menu driven C program which allows to: Build a max heap from the user input (the input is an array of integers). Insert a new element in the max heap. Search a...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.