Jump to content

jj72ny

Members
  • Posts

    33
  • Joined

  • Last visited

Everything posted by jj72ny

  1. I have been recruted by my church to try to build a form that will take info from a external websight one they dont own and place it in to a form that can be added to and sent to the church email the info is in the url how ever i am not shore if and how to extract it to a form the church helps needy people out and would like a way for some one to go to there websight and search say walmart for there needs and then take that description that is in the url and pass it to an email to them in turn a comity buys the item for them (well if its a need they will
  2. IP address is correct it is supose to keep people from rating more than once
  3. And to loop throughfor ($i=1; $i<=10; $i++)Where $i=1 is the times it should loop Not shore what the other numbers are I see them on w3 but really don't understand what they do
  4. Ok so file('ratings.txt');Because I believe that ratings.txt So this should open the file correct?
  5. After some research I found out that this dose not go through a data base info is saved in a txt file witch I have been trying to figure out it still can't be that hard it's right there in the php I just don't know what line or lines it is the program dose it just need to reverse it
  6. Aparently I have misunderstood the concept of this blog I thought it was for help and to learn and learning is what I am trying to do so if its not to much to ask for you to explain your answer
  7. When I open my page I want to put this on instead of it going to the pull down then submit I would like it to go directly to the result page and a button to take you to the rate button Ie Open a book title page and see what other people have rated it then if you have read the book you also can rate it then see the results
  8. lol thought i did <?php/************************************************* * Micro Rate * * Version: 1.0 * Date: 2007-07-17 * ****************************************************/ ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"><html><head> <title>Micro Rate</title> <link href="style/style.css" rel="stylesheet" type="text/css" /></head><body> <div id="main"> <div id="caption">Micro Rate</div> <div id="icon"> </div> <?php if ( (!isset($_POST['submit'])) ) { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> <table width="100%"> <tr><td>Your rating:</td><td><select name="rate"> <?php for ($i = 1; $i <= 10; $i++) { echo "<option value="$i">$i</option>"; } ?> </select></td></tr> <tr><td colspan="2" align="center"><input type="submit" value="Rate it!" name="submit"/></td></tr> </table> </form> <?php } else { $rate = isset ($_POST['rate']) ? $_POST['rate'] : 0; $filename = "ratings"; $alreadyRated = false; $totalRates = 0; $totalPoints = 0; $ip = getenv('REMOTE_ADDR'); $oldResults = file('results/'.$filename.'.txt'); foreach ($oldResults as $value) { $oneRate = explode(':',$value); if ($ip == $oneRate[0]) $alreadyRated = true; $totalRates++; $totalPoints += $oneRate[1]; } if ((!$alreadyRated) && ($rate > 0)){ $f = fopen('results/'.$filename.".txt","a+"); fwrite($f,$ip.':'.$rate."n"); fclose($f); $totalRates++; $totalPoints+=$rate; } ?> <div id="result"> <?php echo "Actual rating from $totalRates rates is: ".substr(($totalPoints/$totalRates),0,3)."<br/>"; for ($i=0;$i<round(($totalPoints/$totalRates),0);$i++){ echo "<img src='style/star.png' alt='s' />"; }echo "</div>"; } ?> <div id="source">Micro Rate 1.0</div> </div>
  9. I am playing around with this script and can't figure out how to show just the results on a page Micro Rate Micro Rate
  10. jj72ny

    include problem

    Ok so I tryed that didn't work everything shows up behind the original content I cut copied and past exactly what you put on board thinking I was missing something and still nothing I just got to thinking there is a ton of pages to this editor maybe it should go in another one I just figured that the editor.html was the one I don't know I guess it's realy not that important to do this just as long as visitors are not acualy leaving my page it may be fine
  11. jj72ny

    include problem

    Everything is in the same folder not in any sub folders
  12. jj72ny

    include problem

    hello all,I am trying to put a include into google svg editor just put a link back to my homepage and maybe a logothis is what i am puting in <div class="leftmenu"> <?php include 'test.php'; ?> </div> cence i do not have a lot of experiance i am unshore where to put it I was trying a hit and miss but every where i put it it would show up behind the same content already therewhere do i put it?am i in the right file? this is the svg editor page<!-- removed for now, causes problems in Firefox: manifest="svg-editor.manifest" --><head><meta http-equiv="Content-type" content="text/html;charset=UTF-8" /><meta http-equiv="X-UA-Compatible" content="chrome=1"/><meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;"/><meta name="apple-mobile-web-app-capable" content="yes"/><link rel="icon" type="image/png" href="images/logo.png"/><link rel="stylesheet" href="jgraduate/css/jPicker.css" type="text/css"/><link rel="stylesheet" href="jgraduate/css/jgraduate.css" type="text/css"/><link rel="stylesheet" href="svg-editor.css" type="text/css"/><link rel="stylesheet" href="spinbtn/JQuerySpinBtn.css" type="text/css"/><!--{if jquery_release}> <script type="text/javascript" src="
  13. From out side the program
  14. Ok so now how can I make that change with a button or a link from my menu bar
  15. Unfourtanatly I have about 5 copy's on puter and non of them work cuz I have played around with them too much I screwed the last one up lastnight but it can be downloaded here http://code.google.com/p/svg-edit/downloads/list or you can look at it on my temp websight athttp://jjshed.site11.com/svg-edit-2.5.1/svg-editor.html if you go to http://jjshed.site11.com you'll see a toolbar hover on u design it and click on yard signs this is where I'd like to put the links to use the different background hope that makes cence
  16. Ok so I have spent every last spare minute trying to figure out how to do this and can't find the place to put it or anything on the web about it either so how do I do it
  17. I have been playing around with google's svg editor and was wondering if it's posible to put a pre slected background on the canvis that could be further edited by user. and can this background be changed by way of a slector link with out having the program on websight twice. ie if a user clicks on a link to square background it goes to svg editor with the square background or user clicks on circle link and it goes to svg editor with a circle background
  18. Aparently there is a diference between the demo at the top and the 2.5.1 in middle of page and the highest download is 2.5.1 I like the demo at top of the page because it also works on my I phone
  19. Took another look at google and that is almost exactly what I am looking for I think. first off what do I have to do to put it on my websight and do I have to ask for it or just take it? Don't whant to piss anyone off
  20. So basically your saying I am way over my head lol nothing new so what about this Raphael I have seen around the web says it will simplify svg. Dose it and agin can't figure it out yet either I have seen the google thing around also I am clueless about that too or should I just pay someOne
  21. I am looking to make somekind of drawing app for my web page. i have looked in to using the canvas tags but i think svg is the better way to go. i know basic html and i am studing up on javascript and some svg at w3schools however i can not see how the two would go together. i just want a simple draw something with a text input change color,size,style some buttoms to add shapes also changing color size and weld them together i have seen a few sights with this on it and i looked at the html but could not figure them out can someone show me how or where i might get some tutorialssomething like this one on this sight http://victorydyo.com/dyo2/editor///mshm_sbll6_sports/2231586
×
×
  • Create New...