Forum Moderators: coopster

Message Too Old, No Replies

concatenate

how to join two statement

         

Mitch888

1:37 am on Apr 7, 2003 (gmt 0)

10+ Year Member



<?
$redoit = "Form sent successfully. Click <a href='http://www.domain.com/form.php?user=$user&pass=$pass'>here</a> to go back";
?>
how do I send the $user & $pass correctly?

willybfriendly

4:48 am on Apr 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Where are you going back to? Where are you coming from?

If, as it looks, you are authorizing a valid user, why not just use

session_register("user");
session_register("pass");

Or, you might consider assigning an array to pass

$my_var = $_POST;

<a href='http://www.domain.com/form.php?user=$my_var'>here</a>

Hope this is of help

WBF

MrSpeed

2:25 pm on Apr 8, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I did not try this myself so there may a typo.
Strings can be joined using the concatenate operator (.)
<?
$redoit = 'Form sent successfully. Click <a href="http://www.domain.com/form.php?user='.$user.'&pass='.'$pass">here</a> to go back';
?>

I'm sure there are other ways.

Mitch888

2:45 pm on Apr 8, 2003 (gmt 0)

10+ Year Member



Sessions actually worked pretty well. I had to make some alterations in my code (hard at first) but made rest of programming and flow fairly easy.

And your concatenation also worked. However, I think I will stick with sessions. Lots more versatile.

Thank you for the help, greatly appreciate it :)