ainosilva

you're welcome!

ainosilva

i don't think you have permissions to do that on remote.. :S but you can try file_get_contents (i guess it will do the same, but...)

<?php
$homepage = file_get_contents('http://www.example.com/');
echo $homepage;
?>

ainosilva

search for some tutorials, http://psd.tutsplus.com and then practise!

ainosilva

ainosilva

you just added the files to the pages?

ainosilva

i'm a woman, not a man ahahah :P

no probs man! all will be there for you ;)

nitin1 commented: that's the correct answer or explaination if anybody will give. +0

ainosilva

woman :P

ainosilva

thanks :D

ainosilva

$depart=$_REQUEST['department'];

it's not $_GET?

ainosilva

and give help too (A)

ainosilva

ok, try to leave empty the regdiv first, because now you have to names registration, understand?

ainosilva

ainosilva

two ways: or you make page do refresh by putting javascript code on select (on event on change) to call a function to reload the page but with a querystring like the value choosen
Or you use ajax like in this: http://www.dhtmlgoodies.com/scripts/ajax-chained-select/ajax-chained-select.html

ainosilva

I have 2 files. One have php code to display some information. Another calls the other to get the content into a string, to create another one but .html.

ainosilva

I put the url, so I can get only the "html" code, because the file with the content that I want to is in .php and it's in my server (same as the page with the code above)...
so is there any other way to do it? :/

I'm thinking (desperately) in making an huge string with all the code of the other page and run, and split and make it like html... if there isn't another way

Thank you for all answers until now :)

ainosilva

no... :/ it didn't

ainosilva

...hmm sorry, but in this case what is $str value? :$

ainosilva

ok, an example with session

on line 70 you put like this:
to know if form was submitted

then on lines 190 to 192 change to this

if (Request.Querystring("submit")="yes") then
strVarDate1 = split(Request.Form("Date1"),"-")
session("date1")=strVarDate1
strVarDate2 = split(Request.Form("Date2"),"-")
session("date2")=strVarDate2
else
strVarDate1=session("date1")
strVarDate2=session("date2")
end if

SplitDate1 = (strVarDate1("2"))&"-"&(strVarDate1("1"))&"-"&(strVarDate1("0"))

so now you when you submit you save dates on sessions, and in case it's not a submit the variables go to get dates from sessions

ainosilva

nop... the result is the same... :/ I don't understand why in localhost it works...
on line 15, if I put htmlentities only appears a script that is on body, if I take that off, appears all the php code...

In local it works putting open the $x (url) and with no htmlentities... if I do that on the server the result is: only appears that script (javascript)... :S

ainosilva

after submit form you need to save the both datas in a session or querytring, so you can put in sql the variables. if form was submitted that variables are from form, if not then are from querystring you create or session..

ainosilva

I used before, without profile and now I create one to help too :P
Namaste!

ainosilva

No. I have a .php page that I want to get content from to write in another page and make a download for the user.

ainosilva

thank you all

ainosilva

yes, same result :/

ainosilva

ok, questions: when you type your username everything is fine? it goes to success page?
after line 26 put this:
echo $LoginRS__query;

what appears?
go to your mysql console or phpmyadmin and paste the query that will appear on the page

ainosilva

split after a few characters in all the ways...
str_split($string, 30);

ainosilva

wooooo so many posts :O :O

ainosilva

put scroll on the box inside or detect uppercase : if (preg_match('/[A-Z]+/', $str))

ainosilva

and it goes to "Connections/user1.php"? are the sessions with the correct values on the other page?

ainosilva

I dont understant what's line 58: mysql_select_db($database_user1_db, $user1_db);
there's no variables ..._user1 are they on user1_db.php?