Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
50% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~12.2K People Reached
Favorite Tags

22 Posted Topics

Member Avatar for ogo'
Member Avatar for sahilmohile15
Member Avatar for sahilmohile15
0
163
Member Avatar for shany0786

Simply include your html page in a .php script <?php if(isset($_SESSION['login']) require_once("pageA.html"); else require_once(pageB.html); ?>

Member Avatar for TexWiller
0
319
Member Avatar for squeak24
Member Avatar for Niels_1

I uggest you to look at this example [Click Here](http://code.tutsplus.com/tutorials/rapid-application-prototyping-in-php-using-a-micro-framework--net-21638) it is a complete php app written in oop logic with mvc pattern it helped me to understand how to organize php code in oop logic. for interaction with database look at idiorm code. hth

Member Avatar for TexWiller
0
265
Member Avatar for sashiksu

I think you are very lazy just put the line in visual studio and you see the string is not properly formatted double quotes should be escaped

Member Avatar for hericles
0
194
Member Avatar for TexWiller

I have to execute a very long time script in php, during the execution the browser still waiting. There is any way to "tell" the browser to stop waiting as the page was completed ? but obviously the sript must continue

Member Avatar for TexWiller
0
247
Member Avatar for Marco_4

your script is executed when server receives data via post at the moment you can't do anything on client side you have 2 choices `1. validate data before submit using jquery or js see docs for .onsubmit event` 2. if there any error you can redisplay the page showing the …

Member Avatar for TexWiller
0
171
Member Avatar for rpv_sen

there can be only rone adio selected in a group you group them assigning the same name attribute in POST you will receives the value of the selected radio

Member Avatar for James_43
0
315
Member Avatar for giri.b

ready done! <select id="select_one" onchange="selection_changed();"> <option value="1">one</option> <option value="2">two</option> </select> <select id="select_two" onchange="selection_changed();"> <option value="1">one</option> <option value="2">two</option> </select> selection_changed(){ if( $("select_one").val()==$("select_two").val(){ window.location="http://example.com"; } }

Member Avatar for gentlemedia
-1
276
Member Avatar for Podu

$("[checkbox]").each(){ $(this) //this is your checkbos you can elaborate val and attributes send to the server via $.post(...) }

Member Avatar for AndrisP
0
609
Member Avatar for Ts91

remember the view is the output sent to the browser suppose you have an array of records you can prepare a string for your options like this $options=""; foreach( $records as $k=>$v){ $options.="<option value='$v'>$k</option>\n" } or put the cycle directly in the view (not a best practice)

Member Avatar for TexWiller
0
2K
Member Avatar for Ts91
Member Avatar for TexWiller
0
1K
Member Avatar for rubberman

imho modern php coding follows these best practices: strong application of mvc pattern with url rewriting a router business logic in classes absolutely no html output from php in php prepare all data to pass to view(html) can use a template engine **must** use an orm if you work in …

Member Avatar for TexWiller
3
2K
Member Avatar for G_S

require parse the php code and **add** output not replace if you follow the flow of your code it may be right.

Member Avatar for G_S
0
235
Member Avatar for chrisschristou

you should check if the rendered page is as you expect to be press control-u in browser and look if the source is right open console and also verify if there are javascript|css error when you get the origin of the error post it

Member Avatar for pixelsoul
0
2K
Member Avatar for hareeshshinde

basic lib [Click Here](http://phpmailer.codeworxtech.com/) basic example $mail = new PHPMailer(); $doc = $text;//some text here $mail->AddStringAttachment($doc, 'doc.txt', 'base64', 'application/xxx');//xxx myme type $mail->Send();

Member Avatar for Gideon_1
0
145
Member Avatar for castajiz_2

if you need to further process data client side you can generate an js array which contains json object `$js="list = new Array();\n"; $index=0; while ($row)`{ $js.="list[".$index."]=".json_encode($row).";\n"; } //in the page just print $js

Member Avatar for TexWiller
0
316
Member Avatar for Niloofar24

if you don't want to use dom api that is the best choice your content is a string parse it to find the css href and then load it again with file_get_contents

Member Avatar for diafol
0
608
Member Avatar for Niloofar24

my best choice is [Click Here](http://simplehtmldom.sourceforge.net/) linear and well document also works well.

Member Avatar for Niloofar24
0
685
Member Avatar for vatsal_1

obviously you can't integrate user's bank account into your system I'll never let you get in my bank account. your best option is integrate pyapal users then can pay by 1.credit/debit cards 2.paypal account 3.wire transfer from their bank

Member Avatar for TexWiller
0
138
Member Avatar for Manish_9

this can be a logic $cYear='2015';//set current year //cycle over month for ($i=1; $i <=12 ; $i++) { //make query for the month $sql = "SELECT * FROM ".$SETTINGS["data_table"]." WHERE `event_date` LIKE '".$cYear."-".$i."-%'"; $result_eventsOfMonth = mysql_query ($sql, $connection ) or die ('request "Could not execute SQL query" '.$sql); if (mysql_num_rows($result_eventsOfMonth)>0) …

Member Avatar for AleMonteiro
0
282

The End.