close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Problem with remote page

Thread began 1/02/2020 3:26 pm by john70964 | Last modified 1/17/2020 3:04 pm by Ray Borduin | 208 views | 18 replies |

john70964

Problem with remote page

Hi Ray
I have a page boatenquiry_insert.php
The page is supposed to pass details to confirm.php.

On my localhost this is carried out correctly.
I have uploaded local files boatenquiry_insert.php and confirm.php to a remote server but the confirm page does not open but the page boatenquiry_insert.php opens again when it should pass to confirm.php.

I have checked the localhost version against the remote version and can find no difference in the code. I am using an excellent app called Code Compare to compare the local and remote files and they are the same.

I wondered if you can see why confirm.php does not open on the remote server.

Remote
http://net100test.co.uk/index2.php
http://net100test.co.uk/boat-details.php?RecNo=12140
http://net100test.co.uk/Enquiries/boatenquiry_insert.php?RecNo=12140
Send Enquiry goes back to
http://net100test.co.uk/Enquiries/boatenquiry_insert.php?RecNo=12140

Localhost
http://localhost/boatsforsalenow_mysqli2/index2.php
http://localhost/boatsforsalenow_mysqli2/boat-details.php?RecNo=12140
http://localhost/boatsforsalenow_mysqli2/Enquiries/boatenquiry_insert.php?RecNo=12140
http://localhost/boatsforsalenow_mysqli2/Enquiries/confirm.php
localhost/boatsforsalenow_mysqli2/Enquiries/thank_you.php

Sign in to reply to this post

Ray BorduinWebAssist

Delete lines 22-54 that is not being used.

Does the insert take place on the live server just not the redirect?

Update the insert trigger to use the same button press trigger as the validation. Validation and actions should use the same redirect.

If it still doesn't work, please attach the new file in a reply.

Sign in to reply to this post
Did this help? Tips are appreciated...

john70964

Delete lines 22-54 that is not being used.
Done

Does the insert take place on the live server just not the redirect?
I checked the remote database and it is being updated with my tests

Update the insert trigger to use the same button press trigger as the validation. Validation and actions should use the same redirect.
Any hints on how this is carried out Ray?

Sign in to reply to this post

Ray BorduinWebAssist

Currently the blank line on line 22 would prevent the redirect. It could potentially be an issue with blank lines or errors in an include file causing the problem as well.

Remove line 22.

Open the Insert Record Server Behavior and then change the trigger in the list to use the "insert" button press.

Test that and let me know if you still have the problem. The next step in debugging would probably be to add this before the insert code:

php:
<?php

if (isset($_POST["Insert"])) die("here");
?>



And see if there is any blank lines or errors that are occurring that might be preventing the redirect.

Sign in to reply to this post
Did this help? Tips are appreciated...

john70964

When I inserted
<?php if (isset($_POST["Insert"])) die("here");?>
in the code
a blank page shows only with the word "here"

I took out some blank lines inc line 22

Please find attached file I removed <?php if (isset($_POST["Insert"])) die("here");?>

Sign in to reply to this post

Ray BorduinWebAssist

If you view source with the word "here" are there any spaces or blank lines before it? They could be coming from one of the include files so I couldn't spot them in the source code provided.

Sign in to reply to this post
Did this help? Tips are appreciated...

john70964

I have now re-inserted
<?php
if (isset($_POST["Insert"])) die("here");
?> into boatenquiry_insert.php which I previously removed.
When the page is run the resultant page just shows 'here' as does the source code.
Please see attached.
Thank you
John

Sign in to reply to this post

Ray BorduinWebAssist

Add it right before the insert on line 30 to see if any spaces are added between lines 1 and 30.

Sign in to reply to this post
Did this help? Tips are appreciated...

john70964

Yes I did that and get similar
Connection to MySQL server successfully established.

here

Sign in to reply to this post

john70964

Scrolling through boatenquiry_insert.php I get an error message in DW line no 179
<?> invalid markup
Marked invalid because its an over lapping or unclosed tag

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...