close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

URL redirect

Thread began 4/19/2010 3:57 am by gwh362692 | Last modified 9/09/2011 11:57 am by gwh362692 | 2522 views | 7 replies

gwh362692

URL redirect

Hi everyone,

I have a page on my site with a series of links that, when clicked, submit to a page (index.php) located in the same directory as itself, eg.

<li id="formal"><?php echo "<a href=\"$url_consumer/index.php?subcatID=6&itemTypeID=1\">Link 1</a>"?></li>

index.php contains only php and basically just queries a database and then loads the information into the current page with the links in it.

This page with all the links in it, also contains a form which when submitted, inserts the information into a database table and is then redirected to the current page:

$WA_redirectURL = "?sent=true";

On this current page, the first 'confirm' paragraph below is supposed to be shown:

<?php if(isset($_GET['sent']) && $_GET['sent'] == "true") { ?> <p id="confirm" style="background-color: #ded5b3; color: #00274c; padding: 5px; margin-bottom: 8px;"> <strong>Thank you – your details have been processed. </strong></p><?php } else { ?>
<p>Subscribe to our newsletter.</p>
<?php } ?>

It doesn't seem to work though because even though it's submitting to itself, it's not loading the current page because it needs certain information in the url string to do this (see the abovementioned link). When the submit button is pressed the following is at the end of the url:

index.php?sent=true

Since index.php is the php page that only queries the database the page shown is blank and not the page that was previously seen, before submitting the form.

I just wondered if anyone knows of a workaround for this problem?

Appreciate any advice.

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