473,320 Members | 1,965 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,320 software developers and data experts.

to open another php page

3
hello friends
I'm new to php and mysql.

i'm having code like below
<html>
<head>
<javascript function for validation>
in the funtion after validations
i am calling another php file like

document.abc.action="2.php"
<end javascript>

</head>
<body>>
<form name="abc" method="post">
with some fields
and button like below
<input type="submit" name="submit" value="Submit" onclick="validate();">

using above, validate function is working fine. but after that it is not going to 2.php

after browing some sites i changed the button attribute like below

<input type="button" name="submit" value="Submit" onclick="validate();">

with this type, while validating if some error occurs, the code is ourputting the alert message and thenentries in all the fields are going off (means i think it is reloading the 1.php again), but i want to retain the entries made. and after finishing the entries correctly i want to load 2.php

what to do?
please help me
Dec 6 '06 #1
3 1788
ronverdonk
4,258 Expert 4TB
Only if you post your code within php, html or code tags!

This is the second thread you started in the wrong forum! JavaScript and DHTML do not belong in the PHP forum!

I'll transfer it.

Ronald :cool:
Dec 6 '06 #2
bagya
3
thank you moderator
Dec 7 '06 #3
sashi
1,754 Expert 1GB
hello friends
I'm new to php and mysql.

i'm having code like below
<html>
<head>
<javascript function for validation>
in the funtion after validations
i am calling another php file like

document.abc.action="2.php"
<end javascript>

</head>
<body>>
<form name="abc" method="post">
with some fields
and button like below
<input type="submit" name="submit" value="Submit" onclick="validate();">

using above, validate function is working fine. but after that it is not going to 2.php

after browing some sites i changed the button attribute like below

<input type="button" name="submit" value="Submit" onclick="validate();">

with this type, while validating if some error occurs, the code is ourputting the alert message and thenentries in all the fields are going off (means i think it is reloading the 1.php again), but i want to retain the entries made. and after finishing the entries correctly i want to load 2.php

what to do?
please help me
Hi there,

I't not possible to point you in the right direction without seeing your Javascript function.Please include the above said function in your next post as it ould ease in providing solution in return. Good luck & Take care.
Dec 7 '06 #4

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

Similar topics

0
by: Unigroup of New York | last post by:
Content-Type: multipart/mixed; boundary="------------C465DF38DCB38DD2AF7117E0" Lines: 327 Date: Tue, 15 Feb 2005 23:36:38 -0500 NNTP-Posting-Host: 24.46.113.251 X-Complaints-To: abuse@cv.net...
18
by: Paul | last post by:
I link to a web site from an Excel spreadsheet. The page i link to is getCookie.asp which sets a cookie then returns back some html which opens a new window, to the same site but a different page...
6
by: lukeo | last post by:
I'm shelling out to an .asp (or htm) page from an application. I want to show this in a window without the address bar, etc... Is there a way I can redirect this page using javascript to a page...
4
by: Dan Cruz | last post by:
Below are two files: Main.asp and Help.asp. I've stripped it down to the 'barest-of bones' so that anyone willing to help can duplicate the problem on their own systems. ***Main.asp*** looks...
3
by: ACaunter | last post by:
Hi all, I need to set a session variable and open a new window with a single click of an asp.net button. My problem is that it always takes two clicks.. one sets the session and the other opens...
6
by: Jack | last post by:
I have a main webpage that has a list of records, each with a link to a window.open function call. As an example, a page that opens is editrecord.aspx?RecordID=34, and another is...
18
by: len.hartley | last post by:
Hi, I am trying to pop-up a window when the user clicks on an image. The problem is that when the user clicks on the image and the window pops up OK, but the window underneath also proceeds to...
11
by: Dave | last post by:
For some reason, the below lines only work on select machines. All machines are running IE6. IE SP's and OS's vary. When it doesn't work, default.aspx (the page that this code is in) opens and...
6
by: bushi | last post by:
hi everyone! i have diplayed my hyperlinks in a iframe.when i redirect to next page.the next page also open in the same frame,but i want to open a new browser window,when i click on the...
7
by: Peter | last post by:
ASP.NET 2.0 I am trying to open a Word document and Excel document from a dialog web page, what's the best way to do that? I have tried the following: Response.Clear();...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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...

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.