Need Help With Php

This is a discussion on "Need Help With Php" within the PHP Forum section. This forum, and the thread "Need Help With Php are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 12th, 2007, 09:27
New Member
Join Date: May 2007
Location: AUS
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Need Help With Php

can some1 pls help me with the php **** i cannot do it all and its giving me the shits
Reply With Quote

  #2 (permalink)  
Old May 12th, 2007, 13:18
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need Help With Php

Ugh! And you expect us to help you how exactly?!


What's going on? What's the script for? What's the error your getting? Give us the code... etc... etc... etc...
Reply With Quote
  #3 (permalink)  
Old May 12th, 2007, 15:20
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need Help With Php

This is the worst post ive ever seen .... explain yourself a little better or im going to delete this thread.

Sorry but this sort of thing gets right up my nose
Reply With Quote
  #4 (permalink)  
Old May 12th, 2007, 22:15
New Member
Join Date: May 2007
Location: AUS
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need Help With Php

yer i was going to do that once i knew some1 would help me
i am making my mum a website and im using netscape composer to do that and i want to make php emailing form script for it so they can email off the sight.
and im using one that u sign up for but i dont want that i want to controll it myself
this is the one im using
Code: Select all
<!-- Begin Freedback Form -->
<!-- DO NOT EDIT YOUR FORM HERE, PLEASE LOG IN AND EDIT AT FREEDBACK.COM -->
<form enctype="multipart/form-data" method="post"
 action="http://www.freedback.com/mail.php" accept-charset="UTF-8">
  <div> <input name="acctid" id="acctid" value="nln9gipzur9rcx0r"
 type="hidden"> <input name="formid" id="formid" value="210383"
 type="hidden"> <input name="required_vars" id="required_vars"
 value="name,email" type="hidden"> </div>
  <table border="0" cellpadding="5" cellspacing="5">
    <tbody>
      <tr>
        <td valign="top"> <strong>Name:</strong> </td>
        <td valign="top"> <input name="name" id="name" size="40"
 value="" type="text"> </td>
      </tr>
      <tr>
        <td valign="top"> <strong>Email Address:</strong> </td>
        <td valign="top"> <input name="email" id="email" size="40"
 value="" type="text"> </td>
      </tr>
      <tr>
        <td valign="top"> <strong>Rate This Website</strong> </td>
        <td valign="top">
        <select name="field-5eb938e3f42e905" id="field-5eb938e3f42e905">
        <option value="Bad">Bad </option>
        <option value="Good">Good </option>
        <option value="Excelent">Excelent</option>
        </select>
        </td>
      </tr>
      <tr>
        <td valign="top"> <strong>Comments</strong> </td>
        <td valign="top"> <textarea name="field-5c02396664de425"
 id="field-5c02396664de425" rows="6" cols="40"></textarea> </td>
      </tr>
      <tr>
        <td valign="top"> <strong>Questions</strong> </td>
        <td valign="top"> <textarea name="field-bdeed68e96a5bf9"
 id="field-bdeed68e96a5bf9" rows="6" cols="40"></textarea> </td>
      </tr>
      <tr>
        <td colspan="2" align="center"> <input value=" Submit Form "
 type="submit"> </td>
      </tr>
    </tbody>
  </table>
</form>
<br>
<center><font face="Arial, Helvetica" size="1"><b><a
 href="<A href="http://www.freedback.com"><br">http://www.freedback.com"><br>
</a></b></font></center>
<!-- End Freedback Form -->
cheers

Last edited by karinne; May 14th, 2007 at 12:06. Reason: Please use [code]...[/code] tags when displaying code!
Reply With Quote
  #5 (permalink)  
Old May 12th, 2007, 22:32
Junior Member
Join Date: May 2007
Location: britain
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need Help With Php

The form you have submit is fine, granted there a lot of useless code there it could easily be stripped down and made a lot better and simpler

but that is a html what part of php is it you are having a problem with and what error?

if you want i can post the simplify version of the form data but for the php i would really need to see your code before giving any advice i might be able to
Reply With Quote
  #6 (permalink)  
Old May 12th, 2007, 22:36
New Member
Join Date: May 2007
Location: AUS
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need Help With Php

yer can u get rid of all that **** on there so i can controll it
Reply With Quote
  #7 (permalink)  
Old May 13th, 2007, 05:47
New Member
Join Date: May 2007
Location: AUS
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need Help With Php

Code: Select all
<form action="mailto:yes i no email goes here?subject=WEBSITE"
method="post">
<ul style="list-style-type: none;">
<li>Name:</li>
<li><input name="name" size="30" type="text"></li>
<li>email:</li>
<li><input name="email" size="30" type="text"></li>
<li>Comments on website:</li>
<li><textarea name="comment" rows="6" cols="30"></textarea></li>
<li>Questions:</li>
<li><textarea name="comment" rows="6" cols="30"></textarea></li>
<li>Rate Website:<br>
</li>
<li>BAD<input name="Extras" value="Manual" type="checkbox"> GOOD<input
name="Extras" value="Photos" type="checkbox"> EXCELENT<input
name="Extras" value="Carry_case" type="checkbox"></li>
<li><br>
</li>
<li><input value="Send" type="submit"> <input type="reset"></li>
</ul>
</form>
i found this 1 but it doesnt work

Last edited by karinne; May 14th, 2007 at 12:07. Reason: Please use [code]...[/code] tags when displaying code!
Reply With Quote
  #8 (permalink)  
Old May 13th, 2007, 06:26
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need Help With Php

mailto from a form will work for some visitors to your site but not for others as it depends on how their browser is set up and their ISP. A very bad idea, I'm afraid. More on this topic:

http://www.netmechanic.com/news/vol3/form_no4.htm

Best advise for a really simple email script is to point your form at a PHP script that sends the email ... as per the earlier example that we've not yet seen the full code for (the mail.php script).
Reply With Quote
  #9 (permalink)  
Old May 13th, 2007, 06:28
New Member
Join Date: May 2007
Location: AUS
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need Help With Php

yer i need help with the php stuff its so confusing
Reply With Quote
  #10 (permalink)  
Old May 13th, 2007, 06:50
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need Help With Php

Quote:
Originally Posted by tyler199 View Post
yer i need help with the php stuff its so confusing
But, Tyler, we can't help sort out what's wrong with your code is you don't show it to us

Your original script refers to a file called mail.php on a web site called www.feedback.com and that's the PHP script that it was trying to use. At its simplest (I have tested this, but you need to put your email address in there!) the script would look like:

Code: Select all
<?php
foreach (array_keys($_REQUEST) as $kn) {
$em .= "$kn: $_REQUEST[$kn]\n\n"; }
mail("tyler@yourdomain.com","Subject goes here",$em);
?>
<html>
<body>
--- Response page ---<br>
<a href=http://www.wellho.net>A great place to learn</a>
</body>
</html>
Reply With Quote
  #11 (permalink)  
Old May 13th, 2007, 09:24
Reputable Member
Join Date: May 2006
Location: Northampton, UK
Posts: 399
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need Help With Php

Also read through this recent thread ... ive posted a sort of "mental approach" to how things should work, it might help point you in the right direction.
http://www.webforumz.com/php-forum/35555-php-form-help.htm

think its post number 3
Reply With Quote
  #12 (permalink)  
Old May 14th, 2007, 08:36
New Member
Join Date: May 2007
Location: AUS
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need Help With Php

thanks alot 4 your help guys
Reply With Quote
Reply

Tags
php

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 06:58.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43