469,331 Members | 6,494 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,331 developers. It's quick & easy.

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 1625
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

Post your reply

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

Similar topics

6 posts views Thread by lukeo | last post: by
3 posts views Thread by ACaunter | last post: by
6 posts views Thread by Jack | last post: by
18 posts views Thread by len.hartley | last post: by
11 posts views Thread by Dave | last post: by
7 posts views Thread by Peter | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by haryvincent176 | last post: by
reply views Thread by Marylou17 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.