Help needed in forms submission
Moderator: General Moderators
Help needed in forms submission
Hey guys,
I have one file say called X.php which contains a form to submit data and a file. I have another file called Y.php to process the data and the file submitted and insert them into the database. The form action in X.php will be directed to Y.php. Is there any way to have a interim page to display and show the user that uploading file is in progress? My case now is that once i click on submit it will go process Y.php and will not display anything until the whole transfer is through. I just want a page indicating that upload is in progress to inform the user.
I have one file say called X.php which contains a form to submit data and a file. I have another file called Y.php to process the data and the file submitted and insert them into the database. The form action in X.php will be directed to Y.php. Is there any way to have a interim page to display and show the user that uploading file is in progress? My case now is that once i click on submit it will go process Y.php and will not display anything until the whole transfer is through. I just want a page indicating that upload is in progress to inform the user.
the easiest way is to put it at the start of y.php... somethng like:
p... somethng like:
/this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
to put it at the start of y.php... somethng like:
8]
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
ethng like:
ding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
the start of y.php... somethng like:
d to the database';
}else{
echo '$value is blank';
}
?>
base sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
{
echo '$value is blank';
}
?>
to put it at the start of y.php... somethng like:
php... somethng like:
y.php... somethng like:
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
he start of y.php... somethng like:
to put it at the start of y.php... somethng like:
to put it at the start of y.php... somethng like:
o our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
to put it at the start of y.php... somethng like:
of y.php... somethng like:
ing to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echocessed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
php... somethng like:
the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}elseamp;lt;?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
b
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
e processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
]
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
ng like:
($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
]
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
:
k';
}
?>
start of y.php... somethng like:
lly added to the database';
}else{
echo '$value is blank';
}
?>
somethng like:
]
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
thng like:
he db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
ur adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
php]e we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the databa]
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
to put it at the start of y.php... somethng like:
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
ec to put it at the start of y.php... somethng like:Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?><?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
ethng like:
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
the start of y.php... somethng like:
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>}else{
echo '$value is blank';
}
?>
base sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
{
echo '$value is blank';
}
?>
to put it at the start of y.php... somethng like:
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
ec$value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>}else{
echo '$value is blank';
}
?>
database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
he start of y.php... somethng like:
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
[/php
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
[lue){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
to put it at the start of y.php... somethng like:
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?&a37bcf68]
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echocessed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
php... somethng like:
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}elseamp;lt;?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
b
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
e processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
]
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
ng like:
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?&?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
]
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
:
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>}
?>
start of y.php... somethng like:
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>}else{
echo '$value is blank';
}
?>
somethng like:
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?><?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
thng like:
Code: Select all
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
bcf68]
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
ur adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
php]e we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
<?
echo 'Now being processed...';
//this is where we do our adding to the db
if ($value){
//adding to database sutff goes here
echo 'Successfully added to the database';
}else{
echo '$value is blank';
}
?>
Take a look at this: viewtopic.php?t=33880
I came with a similar question, but with a progressbar and it seems that there's only one way to go with that and that is CGI, it's the only script i found sofar that shows you a progress bar... If you are looking for a progress bar.
I came with a similar question, but with a progressbar and it seems that there's only one way to go with that and that is CGI, it's the only script i found sofar that shows you a progress bar... If you are looking for a progress bar.