Current location: Hot Scripts Forums » Programming Languages » PHP » How to Connect?


How to Connect?

Reply
  #1 (permalink)  
Old 11-08-10, 11:43 PM
phphelpme phphelpme is offline
Newbie Coder
 
Join Date: Jul 2010
Posts: 85
Thanks: 10
Thanked 0 Times in 0 Posts
How to Connect?

ok here is a script im working on , and i want to know how to make it contact the other script
PHP Code:

<?php // checkuser.php

include_once 'functions.php';

if (isset(
$_POST['email']))

$firstname sanitizeString($_POST['firstname']);

if(!
$_POST['firstname'] || strlen($_POST['firstname'])<|| strlen($_POST['firstname'])>50)
{
echo 
"<font color='red'> over 3 letters</font>";
}
else 
{
  echo 
"<img src='img/goodemail.jpg' Width='27' height='27'>";
}
?>

Now how do i make it contact the other script to make sure they entered some thing ?
Reply With Quote
  #2 (permalink)  
Old 11-09-10, 05:31 PM
kfurlong's Avatar
kfurlong kfurlong is offline
Wannabe Coder
 
Join Date: Oct 2010
Posts: 150
Thanks: 6
Thanked 20 Times in 20 Posts
more information

Can you provide a little more information, I dont understand what you mean
Reply With Quote
  #3 (permalink)  
Old 11-09-10, 06:53 PM
phphelpme phphelpme is offline
Newbie Coder
 
Join Date: Jul 2010
Posts: 85
Thanks: 10
Thanked 0 Times in 0 Posts
How would i make it connect

how would i make it connect to a nother page? ajax ?
Reply With Quote
  #4 (permalink)  
Old 11-09-10, 07:29 PM
kfurlong's Avatar
kfurlong kfurlong is offline
Wannabe Coder
 
Join Date: Oct 2010
Posts: 150
Thanks: 6
Thanked 20 Times in 20 Posts
another page to do what?

ajax will work if you want to populate something or something like that, but if you want to just run code from a page you can include the page, it all depends on your application.
Reply With Quote
Reply

Bookmarks

Tags
ajax, javascript, php, php form, php help


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql Incorrect Count MrDarko Database 6 08-07-07 12:22 PM
Says Can't Connect connor PHP 9 03-29-07 01:08 PM
Has anybody used SourceAnyWhere,could you help me out? xutaokelly Windows .NET Programming 0 08-22-05 05:41 AM
Error: 500 Can't connect to ppm.ActiveState.com:80 (connect: Unknown error) padmanaban_bala Perl 2 05-03-05 05:00 PM
When is the best time to connect to the db? ExtremeGuy PHP 7 08-22-04 10:36 AM


All times are GMT -5. The time now is 08:43 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.